Merge pull request #1677 from SergioCrisostomo/fix-timepicker-scroll

Broken initial scroll in time-picker with steps
This commit is contained in:
Aresn 2017-08-24 16:01:36 +08:00 committed by GitHub
commit 3485243a4d

View file

@ -171,7 +171,7 @@
const times = ['hours', 'minutes', 'seconds'];
this.$nextTick(() => {
times.forEach(type => {
this.$refs[type].scrollTop = 24 * this.getScrollIndex(type, this[type]);
this.$refs[type].scrollTop = 24 * this.getItemIndex(type, this[type]);
});
});
},