Fixed mobile main menu options
authorAlexander Ebert <ebert@woltlab.com>
Mon, 5 Sep 2016 15:53:33 +0000 (17:53 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 5 Sep 2016 15:54:51 +0000 (17:54 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Menu/Main.js

index 5617598f17588743eecbe7d9266e518372d06355..b29de35dda23ee95167f2d3f4195d46d82c85c51 100644 (file)
@@ -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();
                                        }