Commit 23cf31cea85df91235b139ef179600facdc9f33a

Authored by Sergio Crisostomo
1 parent 2baba209

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
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,7 +171,7 @@
171 const times = ['hours', 'minutes', 'seconds']; 171 const times = ['hours', 'minutes', 'seconds'];
172 this.$nextTick(() => { 172 this.$nextTick(() => {
173 times.forEach(type => { 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 },