Skip to content

Commit 5884b91

Browse files
committed
fix: Fixed onPopupMouseLeave triggering error
1 parent 2b7290c commit 5884b91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,8 @@ export function generateTrigger(
596596
);
597597

598598
onPopupMouseEnter = (event) => {
599-
// Only trigger re-open when popup is visible
599+
// Only trigger re-open when popup is visible or in motion
600+
// and ensure the mouse is entering the popup area
600601
if (
601602
(mergedOpen || inMotion) &&
602603
popupEle?.contains(event.target as HTMLElement)

0 commit comments

Comments
 (0)