Close search bar on interactive dropdown open
authorAlexander Ebert <ebert@woltlab.com>
Fri, 26 Aug 2016 10:53:04 +0000 (12:53 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 26 Aug 2016 10:53:04 +0000 (12:53 +0200)
wcfsetup/install/files/js/WCF.js

index d0ec456fc528dec1b662b39acf91f20e17ff9745..d5f1855e944f7711bca296f75a53411367ca681a 100755 (executable)
@@ -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();
        },