collapse: fix error with jQuery v3.5.0.
This commit is contained in:
parent
d848c32297
commit
f5ec0dbf74
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue