From 6797a067c3a612978c1bacc64fe0b17a80c5bd3f Mon Sep 17 00:00:00 2001 From: ikeq Date: Tue, 11 Jul 2023 13:03:05 +0800 Subject: [PATCH] fix(popup): fix comparison of initial state --- src/popup/popup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);