mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-11 08:04:59 +02:00
fix: remove make array util function (#30430)
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
||||
emulateTransitionEnd,
|
||||
getElementFromSelector,
|
||||
getTransitionDurationFromElement,
|
||||
makeArray,
|
||||
reflow
|
||||
} from './util/index'
|
||||
import Data from './dom/data'
|
||||
@@ -85,7 +84,7 @@ class Tab {
|
||||
|
||||
if (listElement) {
|
||||
const itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE
|
||||
previous = makeArray(SelectorEngine.find(itemSelector, listElement))
|
||||
previous = SelectorEngine.find(itemSelector, listElement)
|
||||
previous = previous[previous.length - 1]
|
||||
}
|
||||
|
||||
@@ -190,7 +189,7 @@ class Tab {
|
||||
const dropdownElement = SelectorEngine.closest(element, SELECTOR_DROPDOWN)
|
||||
|
||||
if (dropdownElement) {
|
||||
makeArray(SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE))
|
||||
SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE)
|
||||
.forEach(dropdown => dropdown.classList.add(CLASS_NAME_ACTIVE))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user