From b6fe30cb69c3f5a3085a77c05796a6d22eb2f5f6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 5 Sep 2016 17:53:33 +0200 Subject: [PATCH] Fixed mobile main menu options --- .../install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Main.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Main.js index 5617598f17..b29de35dda 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Main.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Main.js @@ -37,7 +37,7 @@ define(['Core', 'Dom/Traverse', './Abstract'], function(Core, DomTraverse, UiPag elRemove(DomTraverse.childByClass(_list, 'jsMenuOverlayItemPlaceholder')); _list.addEventListener('click', (function (event) { - if (event.target !== _list) { + if (event.target !== _list && DomTraverse.parentByClass(event.target, 'menuOverlayItem', _list) !== null) { this.close(); event.stopPropagation(); } -- 2.20.1