From fcba19b03f389da8110da7b34bea531727ae81a6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 31 Aug 2016 11:59:36 +0200 Subject: [PATCH] Fixed dropdowns staying visible on overlay open --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); -- 2.20.1