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:
parent
2baba209b7
commit
23cf31cea8
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