From: Alexander Ebert Date: Mon, 5 Sep 2016 15:53:33 +0000 (+0200) Subject: Fixed mobile main menu options X-Git-Tag: 3.0.0_Beta_1~289 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b6fe30cb69c3f5a3085a77c05796a6d22eb2f5f6;p=GitHub%2FWoltLab%2FWCF.git Fixed mobile main menu options --- 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(); }