Web: Files: fixed context-menu-button clickOutsideAction

This commit is contained in:
Nikita Gopienko 2021-03-12 15:20:52 +03:00
parent 7465b6cda4
commit 4fc9fbe4d3

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