Commit 4cc72ddba577de79f315fb717aeccb16c19d8c9f
1 parent
3e012ca9
fix #5046
Showing
2 changed files
with
5 additions
and
0 deletions
Show diff stats
src/components/date-picker/base/confirm.vue
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> | ... | ... |