Skip to content

Commit

Permalink
fix: get error subPopupEle maybe null (#348)
Browse files Browse the repository at this point in the history
get error subPopupEle maybe null
  • Loading branch information
DroganC authored Apr 1, 2023
1 parent 1c7ffcf commit 6df1cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export function generateTrigger(
(popupEle?.getRootNode() as ShadowRoot)?.host === ele ||
ele === popupEle ||
Object.values(subPopupElements.current).some(
(subPopupEle) => subPopupEle.contains(ele) || ele === subPopupEle,
(subPopupEle) => subPopupEle?.contains(ele) || ele === subPopupEle,
)
);
});
Expand Down

0 comments on commit 6df1cf8

Please sign in to comment.