diff --git a/js/src/collapse.js b/js/src/collapse.js index 4aece4cd89c8..ed3c064b1665 100644 --- a/js/src/collapse.js +++ b/js/src/collapse.js @@ -77,6 +77,7 @@ const Collapse = (($) => { `[data-toggle="collapse"][href="#${element.id}"],` + `[data-toggle="collapse"][data-target="#${element.id}"]` )) + this._parent = this._config.parent ? this._getParent() : null if (!this._config.parent) {