From d01a08547def495cb1c814ffaecb9d36cad14acd Mon Sep 17 00:00:00 2001 From: GeoSot Date: Thu, 8 Jul 2021 17:54:15 +0300 Subject: use classList `add` instead of `toggle` on show --- js/src/dropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/src/dropdown.js') diff --git a/js/src/dropdown.js b/js/src/dropdown.js index be561b1282..1e0029a60f 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -184,8 +184,8 @@ class Dropdown extends BaseComponent { this._element.focus() this._element.setAttribute('aria-expanded', true) - this._menu.classList.toggle(CLASS_NAME_SHOW) - this._element.classList.toggle(CLASS_NAME_SHOW) + this._menu.classList.add(CLASS_NAME_SHOW) + this._element.classList.add(CLASS_NAME_SHOW) EventHandler.trigger(this._element, EVENT_SHOWN, relatedTarget) } -- cgit v1.2.3