Fix: user menu items are not clickable

This commit is contained in:
Bartek Fabiszewski 2019-12-28 20:33:26 +01:00
parent b0178e90fa
commit d1ad811594

View File

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