Web: Components: ContextMenuButton: Returned click outside check

This commit is contained in:
Ilya Oleshko 2021-03-12 13:42:16 +03:00
parent 7465b6cda4
commit 734675f559

View File

@ -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();
};