update picker, #592

This commit is contained in:
梁灏 2021-01-20 15:54:30 +08:00
parent 69416ce4cd
commit 3423503bb4

View file

@ -779,7 +779,7 @@
if (state === false){ if (state === false){
this.$refs.drop.destroy(); this.$refs.drop.destroy();
} }
this.$refs.drop.update(); if (state) this.$refs.drop.update(); // #589 #590 #592Drop
this.$emit('on-open-change', state); this.$emit('on-open-change', state);
}, },
value(val) { value(val) {
@ -809,6 +809,10 @@
// 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()); this.$on('update-popper', () => this.updatePopper());
},
beforeDestroy() {
this.$off('focus-input');
this.$off('update-popper');
} }
}; };
</script> </script>