diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-05-13 21:53:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 21:53:43 +0300 |
commit | de7af5ee0738d08ef2d6702654834beb5bfce35e (patch) | |
tree | 371b751a7f96f96399e53d1767b8f0c4610cb268 /js/dist/tab.js | |
parent | 53eb7d38830f1e7c593069c8f5b40f4127563317 (diff) |
Dist (#30694)
Diffstat (limited to 'js/dist/tab.js')
-rw-r--r-- | js/dist/tab.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/dist/tab.js b/js/dist/tab.js index 1740b0f703..b0fd4dd8b0 100644 --- a/js/dist/tab.js +++ b/js/dist/tab.js @@ -167,7 +167,8 @@ var previous; var target = getElementFromSelector(this._element); - var listElement = SelectorEngine.closest(this._element, SELECTOR_NAV_LIST_GROUP); + + var listElement = this._element.closest(SELECTOR_NAV_LIST_GROUP); if (listElement) { var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE; @@ -263,7 +264,7 @@ } if (element.parentNode && element.parentNode.classList.contains(CLASS_NAME_DROPDOWN_MENU)) { - var dropdownElement = SelectorEngine.closest(element, SELECTOR_DROPDOWN); + var dropdownElement = element.closest(SELECTOR_DROPDOWN); if (dropdownElement) { SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE).forEach(function (dropdown) { |