diff --git a/js/src/collapse.js b/js/src/collapse.js index 9c7ff927766563606a4096351501dd08ffd4eb02..9da673cc9f9a266501a7a44772634a7472718666 100644 --- a/js/src/collapse.js +++ b/js/src/collapse.js @@ -289,8 +289,8 @@ class Collapse { if (Util.isElement(this._config.parent)) { parent = this._config.parent - // It's a jQuery object - if (typeof this._config.parent.jquery !== 'undefined') { + // it's a jQuery object + if (typeof this._config.parent.jquery !== 'undefined' || typeof this._config.parent[0] !== 'undefined') { parent = this._config.parent[0] } } else {