diff --git a/src/popup/popup.tsx b/src/popup/popup.tsx index 4f57787b6..26dde88d7 100644 --- a/src/popup/popup.tsx +++ b/src/popup/popup.tsx @@ -305,7 +305,7 @@ export default mixins(classPrefixMixins).extend({ }); }, emitPopVisible(visible: boolean, context: PopupVisibleChangeContext) { - if (this.disabled || visible === this.visible) return; + if (this.disabled || visible === !!this.visible) return; if (!visible && this.visibleState > 1) return; if (visible && this.mouseInRange) return; this.$emit('visible-change', visible, context);