Commit 3485243a4d3e58e0a38d1c6de87025cde83b46b4
Committed by
GitHub
Merge pull request #1677 from SergioCrisostomo/fix-timepicker-scroll
Broken initial scroll in time-picker with steps
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/date-picker/base/time-spinner.vue
... | ... | @@ -171,7 +171,7 @@ |
171 | 171 | const times = ['hours', 'minutes', 'seconds']; |
172 | 172 | this.$nextTick(() => { |
173 | 173 | times.forEach(type => { |
174 | - this.$refs[type].scrollTop = 24 * this.getScrollIndex(type, this[type]); | |
174 | + this.$refs[type].scrollTop = 24 * this.getItemIndex(type, this[type]); | |
175 | 175 | }); |
176 | 176 | }); |
177 | 177 | }, | ... | ... |