Skip to content

Commit

Permalink
Close twbs#33625: scope selector to dropdownElement when adding activ…
Browse files Browse the repository at this point in the history
…e classes
  • Loading branch information
cpsievert committed Apr 13, 2021
1 parent c864852 commit dc029ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Tab extends BaseComponent {
const dropdownElement = element.closest(SELECTOR_DROPDOWN)

if (dropdownElement) {
SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE)
SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE, dropdownElement)
.forEach(dropdown => dropdown.classList.add(CLASS_NAME_ACTIVE))
}

Expand Down

0 comments on commit dc029ca

Please sign in to comment.