From 2929bf9619fd0517a9bee0f4b9a753f9513d75dc Mon Sep 17 00:00:00 2001 From: Johann-S Date: Mon, 2 Oct 2017 14:14:07 +0200 Subject: [PATCH] fix weird case with jQuery --- js/src/collapse.js | 4 ++-- 1 file 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 {