From: Alexander Ebert Date: Mon, 27 Feb 2017 10:40:23 +0000 (+0100) Subject: Fixed dropdown menu destruction X-Git-Tag: 3.0.3~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3588b325ec4b0413c42056d12e421b0e0bde8000;p=GitHub%2FWoltLab%2FWCF.git Fixed dropdown menu destruction --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js index 0a6b2c3021..088426aca7 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js @@ -284,15 +284,14 @@ define( try { this.close(containerId); - var menu = _menus.get(containerId); - _menus.parentNode.removeChild(menu); + elRemove(_menus.get(containerId)); } catch (e) { - // the elements might not exist anymore thus ignore all errors cleaning up + // the elements might not exist anymore thus ignore all errors while cleaning up } - _menus['delete'](containerId); - _dropdowns['delete'](containerId); + _menus.delete(containerId); + _dropdowns.delete(containerId); return true; },