diff --git a/src/components/date-picker/base/confirm.vue b/src/components/date-picker/base/confirm.vue index d7136b4..546a0fd 100644 --- a/src/components/date-picker/base/confirm.vue +++ b/src/components/date-picker/base/confirm.vue @@ -55,6 +55,7 @@ if (this.timeDisabled) return; this.$emit('on-pick-toggle-time'); this.dispatch('CalendarPicker', 'focus-input'); + this.dispatch('CalendarPicker', 'update-popper'); }, handleTab(e) { const tabbables = [...this.$el.children]; diff --git a/src/components/date-picker/picker.vue b/src/components/date-picker/picker.vue index e807693..f96536a 100644 --- a/src/components/date-picker/picker.vue +++ b/src/components/date-picker/picker.vue @@ -679,6 +679,9 @@ }, focus() { this.$refs.input && this.$refs.input.focus(); + }, + updatePopper () { + this.$refs.drop.update(); } }, watch: { @@ -715,6 +718,7 @@ // to handle focus from confirm buttons this.$on('focus-input', () => this.focus()); + this.$on('update-popper', () => this.updatePopper()); } }; -- libgit2 0.21.4