Web: Components: ContextMenuButton: Returned click outside check
This commit is contained in:
parent
7465b6cda4
commit
734675f559
@ -103,9 +103,9 @@ class ContextMenuButton extends React.Component {
|
||||
};
|
||||
|
||||
clickOutsideAction = (e) => {
|
||||
/* const path = e.path || (e.composedPath && e.composedPath());
|
||||
const path = e.path || (e.composedPath && e.composedPath());
|
||||
const dropDownItem = path ? path.find((x) => x === this.ref.current) : null;
|
||||
if (!dropDownItem) return; */
|
||||
if (dropDownItem) return;
|
||||
|
||||
this.onIconButtonClick();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user