From: Alexander Ebert Date: Wed, 24 Aug 2016 21:03:19 +0000 (+0200) Subject: Fixed emulated dropdowns on mobile X-Git-Tag: 3.0.0_Beta_1~516 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab57bfdd0ea1822c5936b7c2d674a549d04f72a4;p=GitHub%2FWoltLab%2FWCF.git Fixed emulated dropdowns on mobile --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js index ef2aa24011..a7fea44cfc 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js @@ -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); }); }