mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
use classList add instead of toggle on show
This commit is contained in:
+2
-2
@@ -184,8 +184,8 @@ class Dropdown extends BaseComponent {
|
|||||||
this._element.focus()
|
this._element.focus()
|
||||||
this._element.setAttribute('aria-expanded', true)
|
this._element.setAttribute('aria-expanded', true)
|
||||||
|
|
||||||
this._menu.classList.toggle(CLASS_NAME_SHOW)
|
this._menu.classList.add(CLASS_NAME_SHOW)
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW)
|
this._element.classList.add(CLASS_NAME_SHOW)
|
||||||
EventHandler.trigger(this._element, EVENT_SHOWN, relatedTarget)
|
EventHandler.trigger(this._element, EVENT_SHOWN, relatedTarget)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user