update also timeSpinnerEnd's scroll

This commit is contained in:
Sergio Crisostomo 2018-02-07 09:33:31 +01:00
parent 29a91fbb61
commit 755693b58b

View file

@ -48,8 +48,9 @@ export default {
this.$emit('on-pick', this.dates, visible);
},
onToggleVisibility(open){
const timeSpinner = this.$refs.timeSpinner;
const {timeSpinner, timeSpinnerEnd} = this.$refs;
if (open && timeSpinner) timeSpinner.updateScroll();
if (open && timeSpinnerEnd) timeSpinnerEnd.updateScroll();
}
}
};