const WIDTH = 'width'
const HEIGHT = 'height'
-const SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing'
+const SELECTOR_ACTIVES = '.collapse.show, .collapsing'
const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="collapse"]'
const Default = {
.map(element => Collapse.getOrCreateInstance(element, { toggle: false }))
}
- if (activeChildren.length && activeChildren[0]._isTransitioning) {
+ if (activeChildren.some(instance => instance._isTransitioning)) {
return
}