diff options
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r-- | js/src/collapse.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js index 9c7ff92776..9da673cc9f 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 { |