1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 23:54:08 +02:00

use our selector engine instead of native api

This commit is contained in:
Johann-S
2019-02-20 10:45:46 +02:00
committed by XhmikosR
parent 5877306104
commit fee11fd7ae
5 changed files with 14 additions and 14 deletions

View File

@@ -106,7 +106,7 @@ class Tab {
}
if (selector) {
target = document.querySelector(selector)
target = SelectorEngine.findOne(selector)
}
this._activate(
@@ -193,7 +193,7 @@ class Tab {
const dropdownElement = SelectorEngine.closest(element, Selector.DROPDOWN)
if (dropdownElement) {
Util.makeArray(dropdownElement.querySelectorAll(Selector.DROPDOWN_TOGGLE))
Util.makeArray(SelectorEngine.find(Selector.DROPDOWN_TOGGLE))
.forEach((dropdown) => dropdown.classList.add(ClassName.ACTIVE))
}