mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 14:54:27 +02:00
collapse: fix error with jQuery v3.5.0.
This commit is contained in:
@@ -335,7 +335,7 @@ class Collapse {
|
|||||||
...typeof config === 'object' && config ? config : {}
|
...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
|
_config.toggle = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user