Web:Client:NavMenu: increase z-index for nav menu when profile actions in opening

This commit is contained in:
Timofey Boyko 2022-05-12 11:39:28 +03:00
parent 18f47d0d0e
commit a8ba24fa0a

View File

@ -77,12 +77,24 @@ class ProfileActions extends React.PureComponent {
const dropDownItem = path ? path.find((x) => x === this.ref.current) : null;
if (dropDownItem) return;
const navElement = document.getElementsByClassName("profileMenuIcon");
if (navElement?.length > 0) {
navElement[0].style.setProperty("z-index", 180, "important");
}
this.setOpened(!this.state.opened);
};
onClick = (action, e) => {
action.onClick && action.onClick(e);
const navElement = document.getElementsByClassName("profileMenuIcon");
if (navElement?.length > 0) {
navElement[0].style.setProperty("z-index", 210, "important");
}
this.setOpened(!this.state.opened);
};