Change `toggle` method to `remove`
Since the class `.show` must be removed
This commit is contained in:
parent
bce4684d34
commit
7eadf73f03
|
@ -259,8 +259,8 @@ class Dropdown extends BaseComponent {
|
||||||
this._popper.destroy()
|
this._popper.destroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
this._menu.classList.toggle(CLASS_NAME_SHOW)
|
this._menu.classList.remove(CLASS_NAME_SHOW)
|
||||||
this._element.classList.toggle(CLASS_NAME_SHOW)
|
this._element.classList.remove(CLASS_NAME_SHOW)
|
||||||
this._element.setAttribute('aria-expanded', 'false')
|
this._element.setAttribute('aria-expanded', 'false')
|
||||||
Manipulator.removeDataAttribute(this._menu, 'popper')
|
Manipulator.removeDataAttribute(this._menu, 'popper')
|
||||||
EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget)
|
EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget)
|
||||||
|
|
Loading…
Reference in New Issue