Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r--js/src/collapse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js
index f3ca86f366..2ddcb0c047 100644
--- a/js/src/collapse.js
+++ b/js/src/collapse.js
@@ -150,8 +150,8 @@ class Collapse {
const container = SelectorEngine.findOne(this._selector)
if (actives) {
- const tempActiveData = actives.filter(elem => container !== elem)
- activesData = tempActiveData[0] ? Data.getData(tempActiveData[0], DATA_KEY) : null
+ const tempActiveData = actives.find(elem => container !== elem)
+ activesData = tempActiveData ? Data.getData(tempActiveData, DATA_KEY) : null
if (activesData && activesData._isTransitioning) {
return