aboutsummaryrefslogtreecommitdiff
path: root/js/src/tab.js
diff options
context:
space:
mode:
authorMatt Hernandez <[email protected]>2016-11-25 14:56:41 -0800
committerMark Otto <[email protected]>2016-11-25 14:56:41 -0800
commitb1b1f30cbd0f4f620047dc158cf91e328eeecc6b (patch)
tree2576dbf392eb9059270e209644142ec869df4466 /js/src/tab.js
parent3593ee85c1c8aed948bbe636194fcd5f0988878e (diff)
downloadbootstrap-b1b1f30cbd0f4f620047dc158cf91e328eeecc6b.tar.xz
bootstrap-b1b1f30cbd0f4f620047dc158cf91e328eeecc6b.zip
[Fix #17371][V4] Deactivating dropdown links in nav tab (#17642)
* Fix bug with dropdown tab links not deactivating when other tab or dropdown link is clicked * Revise bug fix for more stability
Diffstat (limited to 'js/src/tab.js')
-rw-r--r--js/src/tab.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tab.js b/js/src/tab.js
index 012d2f76f..9dc33e4da 100644
--- a/js/src/tab.js
+++ b/js/src/tab.js
@@ -181,7 +181,7 @@ const Tab = (($) => {
if (active) {
$(active).removeClass(ClassName.ACTIVE)
- let dropdownChild = $(active).find(
+ let dropdownChild = $(active.parentNode).find(
Selector.DROPDOWN_ACTIVE_CHILD
)[0]