From: Alexander Ebert Date: Wed, 31 Aug 2016 09:59:36 +0000 (+0200) Subject: Fixed dropdowns staying visible on overlay open X-Git-Tag: 3.0.0_Beta_1~382 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fcba19b03f389da8110da7b34bea531727ae81a6;p=GitHub%2FWoltLab%2FWCF.git Fixed dropdowns staying visible on overlay open --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index ed40787a63..8a57c81687 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -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);