diff options
| author | GeoSot <[email protected]> | 2021-07-08 17:54:15 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2021-07-22 17:54:48 +0300 |
| commit | d01a08547def495cb1c814ffaecb9d36cad14acd (patch) | |
| tree | cbf5a0fd7d8f2f8a2bd9ec2209201d2e59971a8b /js | |
| parent | d130b00cad9552feb313cbd04486bd179b7295df (diff) | |
| download | bootstrap-d01a08547def495cb1c814ffaecb9d36cad14acd.tar.xz bootstrap-d01a08547def495cb1c814ffaecb9d36cad14acd.zip | |
use classList `add` instead of `toggle` on show
Diffstat (limited to 'js')
| -rw-r--r-- | js/src/dropdown.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index be561b128..1e0029a60 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) } |
