mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 16:14:04 +02:00
Drop closest from SelectorEngine (#30653)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -80,7 +80,7 @@ class Tab {
|
||||
|
||||
let previous
|
||||
const target = getElementFromSelector(this._element)
|
||||
const listElement = SelectorEngine.closest(this._element, SELECTOR_NAV_LIST_GROUP)
|
||||
const listElement = this._element.closest(SELECTOR_NAV_LIST_GROUP)
|
||||
|
||||
if (listElement) {
|
||||
const itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE
|
||||
@@ -186,7 +186,7 @@ class Tab {
|
||||
}
|
||||
|
||||
if (element.parentNode && element.parentNode.classList.contains(CLASS_NAME_DROPDOWN_MENU)) {
|
||||
const dropdownElement = SelectorEngine.closest(element, SELECTOR_DROPDOWN)
|
||||
const dropdownElement = element.closest(SELECTOR_DROPDOWN)
|
||||
|
||||
if (dropdownElement) {
|
||||
SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE)
|
||||
|
Reference in New Issue
Block a user