0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

collapse: fix error with jQuery v3.5.0.

This commit is contained in:
XhmikosR 2020-04-11 18:26:46 +03:00
parent d848c32297
commit f5ec0dbf74

View File

@ -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
}