Web:Client:NavMenu: increase z-index for nav menu when profile actions in opening
This commit is contained in:
parent
18f47d0d0e
commit
a8ba24fa0a
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user