Fixed closing mobile menu after option selection
authorAlexander Ebert <ebert@woltlab.com>
Wed, 31 Aug 2016 07:53:23 +0000 (09:53 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 31 Aug 2016 07:53:23 +0000 (09:53 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js

index 9715ef98cf80abc40d66ee92b35105b1ec478197..1bbcb4cd98eff0dd54b23067063f4435b5922fb1 100644 (file)
@@ -137,6 +137,8 @@ define(
                                var list = elBySel('.buttonList', navigation);
                                list.addEventListener(WCF_CLICK_EVENT, function(event) {
                                        event.stopPropagation();
+                                       
+                                       navigation.classList.remove('open');
                                });
                                
                                (function(navigation, button) {