From d1ad811594d141dff7f1cde37b97265aac5f4965 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sat, 28 Dec 2019 20:33:26 +0100 Subject: [PATCH] Fix: user menu items are not clickable --- js/src/mainviewmodel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/mainviewmodel.js b/js/src/mainviewmodel.js index a75eca9..270151c 100644 --- a/js/src/mainviewmodel.js +++ b/js/src/mainviewmodel.js @@ -75,7 +75,7 @@ export default class MainViewModel extends ViewModel { const el = event.target; this.userMenuEl.classList.add(hiddenClass); window.removeEventListener('click', this.hideUserMenuCallback, true); - if (!el.parentElement.classList.contains('user-menu')) { + if (el.parentElement.id !== 'user-menu') { event.stopPropagation(); } }