From: Alexander Ebert Date: Fri, 26 Aug 2016 10:53:04 +0000 (+0200) Subject: Close search bar on interactive dropdown open X-Git-Tag: 3.0.0_Beta_1~490 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b52fd689e129f82bc7e5f947dea132e266917c3;p=GitHub%2FWoltLab%2FWCF.git Close search bar on interactive dropdown open --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index d0ec456fc5..d5f1855e94 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1192,6 +1192,11 @@ WCF.Dropdown.Interactive.Instance = Class.extend({ this._triggerElement.addClass('open'); this._container.addClass('open'); + var pageHeader = elById('pageHeader'); + if (pageHeader && pageHeader.classList.contains('searchBarOpen')) { + pageHeader.classList.remove('searchBarOpen'); + } + this.render(); },