Fix: user menu items are not clickable
This commit is contained in:
parent
b0178e90fa
commit
d1ad811594
@ -75,7 +75,7 @@ export default class MainViewModel extends ViewModel {
|
|||||||
const el = event.target;
|
const el = event.target;
|
||||||
this.userMenuEl.classList.add(hiddenClass);
|
this.userMenuEl.classList.add(hiddenClass);
|
||||||
window.removeEventListener('click', this.hideUserMenuCallback, true);
|
window.removeEventListener('click', this.hideUserMenuCallback, true);
|
||||||
if (!el.parentElement.classList.contains('user-menu')) {
|
if (el.parentElement.id !== 'user-menu') {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user