aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorCarson Sievert <[email protected]>2022-09-21 18:29:58 -0500
committerGitHub <[email protected]>2022-09-22 02:29:58 +0300
commit2b46842af908fe54bd7f7982ed07c7cd07bc934a (patch)
treeb03b1fe46bf710f544c5ae218d09b919c87eadb8 /js/src
parent27f20257ebd092b2e5d11a62de0cd5e9cf5a9949 (diff)
downloadbootstrap-2b46842af908fe54bd7f7982ed07c7cd07bc934a.tar.xz
bootstrap-2b46842af908fe54bd7f7982ed07c7cd07bc934a.zip
Fix active class toggling of tabs within dropdown (#37151)
* Close #36947: fix active class toggling tabs within dropdown
Diffstat (limited to 'js/src')
-rw-r--r--js/src/tab.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/js/src/tab.js b/js/src/tab.js
index 31dcec4a4..1d6d68d85 100644
--- a/js/src/tab.js
+++ b/js/src/tab.js
@@ -38,7 +38,6 @@ const CLASS_DROPDOWN = 'dropdown'
const SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'
const SELECTOR_DROPDOWN_MENU = '.dropdown-menu'
-const SELECTOR_DROPDOWN_ITEM = '.dropdown-item'
const NOT_SELECTOR_DROPDOWN_TOGGLE = ':not(.dropdown-toggle)'
const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]'
@@ -231,7 +230,6 @@ class Tab extends BaseComponent {
toggle(SELECTOR_DROPDOWN_TOGGLE, CLASS_NAME_ACTIVE)
toggle(SELECTOR_DROPDOWN_MENU, CLASS_NAME_SHOW)
- toggle(SELECTOR_DROPDOWN_ITEM, CLASS_NAME_ACTIVE)
outerElem.setAttribute('aria-expanded', open)
}