Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRohit Sharma <rohit2sharma95@gmail.com>2021-04-14 12:57:33 +0300
committerXhmikosR <xhmikosr@gmail.com>2021-04-18 08:47:50 +0300
commit7eadf73f03eeb51160a455c6438a9ec16ad107a4 (patch)
tree7ba7aa8194e0328d4e3b956b41c0c15e9bf45e07 /js
parentbce4684d3400c8ed49060d5888904d0486e51b0f (diff)
Change `toggle` method to `remove`
Since the class `.show` must be removed
Diffstat (limited to 'js')
-rw-r--r--js/src/dropdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index dac7368c27..c314cbcddf 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -259,8 +259,8 @@ class Dropdown extends BaseComponent {
this._popper.destroy()
}
- this._menu.classList.toggle(CLASS_NAME_SHOW)
- this._element.classList.toggle(CLASS_NAME_SHOW)
+ this._menu.classList.remove(CLASS_NAME_SHOW)
+ this._element.classList.remove(CLASS_NAME_SHOW)
this._element.setAttribute('aria-expanded', 'false')
Manipulator.removeDataAttribute(this._menu, 'popper')
EventHandler.trigger(this._element, EVENT_HIDDEN, relatedTarget)