Henry Jameson 2 年之前
父節點
當前提交
36aae1635a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/popover/popover.js

+ 1 - 1
src/components/popover/popover.js

@@ -234,7 +234,7 @@ const Popover = {
       }
     },
     onMouseleave (e) {
-      if (this.trigger === 'hover' && this.childrenShown.size > 0) {
+      if (this.trigger === 'hover' && this.childrenShown.size === 0) {
         this.graceTimeout = setTimeout(() => this.hidePopover(), 1)
       }
     },