Fixed dropdowns staying visible on overlay open
authorAlexander Ebert <ebert@woltlab.com>
Wed, 31 Aug 2016 09:59:36 +0000 (11:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 31 Aug 2016 09:59:36 +0000 (11:59 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index ed40787a63be94149b87eb417f01ab29c65f6ad3..8a57c8168756de729a09f1a6ae18eb88670b505f 100644 (file)
@@ -10,12 +10,12 @@ define(
        [
                'enquire',      'Ajax',       'Core',      'Dictionary',
                'Environment',  'Language',   'ObjectMap', 'Dom/ChangeListener',
-               'Dom/Traverse', 'Dom/Util',   'Ui/Confirmation'
+               'Dom/Traverse', 'Dom/Util',   'Ui/Confirmation', 'Ui/SimpleDropdown'
        ],
        function(
                enquire,        Ajax,         Core,        Dictionary,
                Environment,    Language,     ObjectMap,   DomChangeListener,
-               DomTraverse,    DomUtil,      UiConfirmation
+               DomTraverse,    DomUtil,      UiConfirmation, UiSimpleDropdown
        )
 {
        "use strict";
@@ -392,6 +392,10 @@ define(
                                if (typeof data.onShow === 'function') {
                                        data.onShow(data.content);
                                }
+                               
+                               // close existing dropdowns
+                               UiSimpleDropdown.closeAll();
+                               window.WCF.Dropdown.Interactive.Handler.closeAll();
                        }
                        
                        this.rebuild(id);