Skip to content

Commit 2b7290c

Browse files
committed
fix: Fixed onPopupMouseLeave triggering error
1 parent 8a47d0d commit 2b7290c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ export function generateTrigger(
630630
);
631631

632632
onPopupMouseLeave = (event: React.MouseEvent) => {
633-
// only trigger close when mouse leave popup
633+
// fix issue: https://github.com/ant-design/ant-design/issues/54496
634634
if (popupEle?.contains(event.target as HTMLElement)) {
635635
triggerOpen(false, mouseLeaveDelay);
636636
}

0 commit comments

Comments
 (0)