fix #5046
This commit is contained in:
parent
3e012ca94d
commit
4cc72ddba5
2 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
||||||
if (this.timeDisabled) return;
|
if (this.timeDisabled) return;
|
||||||
this.$emit('on-pick-toggle-time');
|
this.$emit('on-pick-toggle-time');
|
||||||
this.dispatch('CalendarPicker', 'focus-input');
|
this.dispatch('CalendarPicker', 'focus-input');
|
||||||
|
this.dispatch('CalendarPicker', 'update-popper');
|
||||||
},
|
},
|
||||||
handleTab(e) {
|
handleTab(e) {
|
||||||
const tabbables = [...this.$el.children];
|
const tabbables = [...this.$el.children];
|
||||||
|
|
|
@ -679,6 +679,9 @@
|
||||||
},
|
},
|
||||||
focus() {
|
focus() {
|
||||||
this.$refs.input && this.$refs.input.focus();
|
this.$refs.input && this.$refs.input.focus();
|
||||||
|
},
|
||||||
|
updatePopper () {
|
||||||
|
this.$refs.drop.update();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
@ -715,6 +718,7 @@
|
||||||
|
|
||||||
// to handle focus from confirm buttons
|
// to handle focus from confirm buttons
|
||||||
this.$on('focus-input', () => this.focus());
|
this.$on('focus-input', () => this.focus());
|
||||||
|
this.$on('update-popper', () => this.updatePopper());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue