From 4b52fd689e129f82bc7e5f947dea132e266917c3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 26 Aug 2016 12:53:04 +0200 Subject: [PATCH] Close search bar on interactive dropdown open --- wcfsetup/install/files/js/WCF.js | 5 +++++ 1 file changed, 5 insertions(+) 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(); }, -- 2.20.1