fixed page crashing when clicked clickOutsideAction
This commit is contained in:
parent
a80a49a57e
commit
2e6d4252e2
@ -163,7 +163,7 @@ const ContextMenuButtonPure = ({
|
||||
};
|
||||
|
||||
const clickOutsideAction = (e: Event) => {
|
||||
const path = e?.composedPath();
|
||||
const path = e?.composedPath && e?.composedPath();
|
||||
const dropDownItem = path
|
||||
? path.find((x: EventTarget) => x === ref.current)
|
||||
: null;
|
||||
|
Loading…
Reference in New Issue
Block a user