mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
use our selector engine instead of native api
This commit is contained in:
+2
-2
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user