Fixed emulated dropdowns on mobile
authorAlexander Ebert <ebert@woltlab.com>
Wed, 24 Aug 2016 21:03:19 +0000 (23:03 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 24 Aug 2016 21:03:19 +0000 (23:03 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js

index ef2aa240110f968f84efc6294ebb13b58dd3bdeb..a7fea44cfcb97a724ca1a820faf38a8c39e71e6e 100644 (file)
@@ -171,6 +171,11 @@ define(
                                if (navigation) {
                                        navigation.addEventListener(WCF_CLICK_EVENT, function(event) {
                                                event.stopPropagation();
+                                               
+                                               // mimic dropdown behavior
+                                               window.setTimeout(function () {
+                                                       navigation.classList.remove('open');
+                                               }, 10);
                                        });
                                }