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
path: root/js/src
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-04-11 18:26:46 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-04-17 11:41:32 +0300
commitf5ec0dbf74869c64bb8d2a93296f5b7582768e4f (patch)
treee02f8f5aa72570c9d44e66a704f67508bdf784a4 /js/src
parentd848c32297dc7585d2b2e5b156c8d957708f2b9e (diff)
collapse: fix error with jQuery v3.5.0.
Diffstat (limited to 'js/src')
-rw-r--r--js/src/collapse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js
index 4243019a8e..39fd62bccf 100644
--- a/js/src/collapse.js
+++ b/js/src/collapse.js
@@ -335,7 +335,7 @@ class Collapse {
...typeof config === 'object' && config ? config : {}
}
- if (!data && _config.toggle && /show|hide/.test(config)) {
+ if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
_config.toggle = false
}