Merge pull request #1677 from SergioCrisostomo/fix-timepicker-scroll
Broken initial scroll in time-picker with steps
This commit is contained in:
commit
3485243a4d
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@
|
||||||
const times = ['hours', 'minutes', 'seconds'];
|
const times = ['hours', 'minutes', 'seconds'];
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
times.forEach(type => {
|
times.forEach(type => {
|
||||||
this.$refs[type].scrollTop = 24 * this.getScrollIndex(type, this[type]);
|
this.$refs[type].scrollTop = 24 * this.getItemIndex(type, this[type]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue