use .getItemIndex() so we get the correct index

since now the index of the `[hours|minutes|seconds]List` might not
anymore match the correct number in value
This commit is contained in:
Sergio Crisostomo 2017-08-23 11:00:45 +02:00
parent 2baba209b7
commit 23cf31cea8

View file

@ -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]);
}); });
}); });
}, },