diff options
| author | XhmikosR <[email protected]> | 2022-11-22 09:51:29 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-22 09:51:29 +0200 |
| commit | 8f6de23682cf08f0e70b9561f75642cbcca14250 (patch) | |
| tree | f56a8abfaef937458b7ae272dd53e01795d73524 /js/src/tab.js | |
| parent | cb021439c683d9805e2864c58095b92d405e9b11 (diff) | |
| parent | abdd3fef1fc742d2a21fc6f536cdad0ebb67aa3c (diff) | |
| download | bootstrap-8f6de23682cf08f0e70b9561f75642cbcca14250.tar.xz bootstrap-8f6de23682cf08f0e70b9561f75642cbcca14250.zip | |
Merge branch 'main' into prepare-523
Diffstat (limited to 'js/src/tab.js')
| -rw-r--r-- | js/src/tab.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/src/tab.js b/js/src/tab.js index 8dc4644c9..efd0398ff 100644 --- a/js/src/tab.js +++ b/js/src/tab.js @@ -5,10 +5,10 @@ * -------------------------------------------------------------------------- */ -import { defineJQueryPlugin, getElementFromSelector, getNextActiveElement, isDisabled } from './util/index' -import EventHandler from './dom/event-handler' -import SelectorEngine from './dom/selector-engine' -import BaseComponent from './base-component' +import { defineJQueryPlugin, getNextActiveElement, isDisabled } from './util/index.js' +import EventHandler from './dom/event-handler.js' +import SelectorEngine from './dom/selector-engine.js' +import BaseComponent from './base-component.js' /** * Constants @@ -106,7 +106,7 @@ class Tab extends BaseComponent { element.classList.add(CLASS_NAME_ACTIVE) - this._activate(getElementFromSelector(element)) // Search and activate/show the proper section + this._activate(SelectorEngine.getElementFromSelector(element)) // Search and activate/show the proper section const complete = () => { if (element.getAttribute('role') !== 'tab') { @@ -133,7 +133,7 @@ class Tab extends BaseComponent { element.classList.remove(CLASS_NAME_ACTIVE) element.blur() - this._deactivate(getElementFromSelector(element)) // Search and deactivate the shown section too + this._deactivate(SelectorEngine.getElementFromSelector(element)) // Search and deactivate the shown section too const complete = () => { if (element.getAttribute('role') !== 'tab') { @@ -203,7 +203,7 @@ class Tab extends BaseComponent { } _setInitialAttributesOnTargetPanel(child) { - const target = getElementFromSelector(child) + const target = SelectorEngine.getElementFromSelector(child) if (!target) { return |
