Commit 4cc72ddba577de79f315fb717aeccb16c19d8c9f

Authored by 梁灏
1 parent 3e012ca9

fix #5046

src/components/date-picker/base/confirm.vue
... ... @@ -55,6 +55,7 @@
55 55 if (this.timeDisabled) return;
56 56 this.$emit('on-pick-toggle-time');
57 57 this.dispatch('CalendarPicker', 'focus-input');
  58 + this.dispatch('CalendarPicker', 'update-popper');
58 59 },
59 60 handleTab(e) {
60 61 const tabbables = [...this.$el.children];
... ...
src/components/date-picker/picker.vue
... ... @@ -679,6 +679,9 @@
679 679 },
680 680 focus() {
681 681 this.$refs.input && this.$refs.input.focus();
  682 + },
  683 + updatePopper () {
  684 + this.$refs.drop.update();
682 685 }
683 686 },
684 687 watch: {
... ... @@ -715,6 +718,7 @@
715 718  
716 719 // to handle focus from confirm buttons
717 720 this.$on('focus-input', () => this.focus());
  721 + this.$on('update-popper', () => this.updatePopper());
718 722 }
719 723 };
720 724 </script>
... ...