1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 17:14:04 +02:00

[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
This commit is contained in:
Matt Hernandez
2016-11-25 14:56:41 -08:00
committed by Mark Otto
parent 3593ee85c1
commit b1b1f30cbd
2 changed files with 33 additions and 1 deletions

View File

@@ -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]