Skip to content

Commit b8689ae

Browse files
committed
Review fixes
1 parent 34e0760 commit b8689ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/internal/primitives/DismissableLayer.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export function DismissableLayer({
5050
return;
5151
}
5252

53+
if (!event.target) {
54+
return;
55+
}
56+
5357
const target = event.target as Node;
5458

5559
if (triggerRef?.current?.contains(target)) {

0 commit comments

Comments
 (0)