mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Accordion: Fix back-compat for active option.
This commit is contained in:
parent
78f781fccd
commit
eb392b3035
2
ui/jquery.ui.accordion.js
vendored
2
ui/jquery.ui.accordion.js
vendored
@ -60,7 +60,7 @@ $.widget( "ui.accordion", {
|
|||||||
.hide();
|
.hide();
|
||||||
|
|
||||||
// don't allow collapsible: false and active: false / null
|
// don't allow collapsible: false and active: false / null
|
||||||
if ( !options.collapsible && ( !options.active || typeof options.active !== "number" ) ) {
|
if ( !options.collapsible && (options.active === false || options.active == null) ) {
|
||||||
options.active = 0;
|
options.active = 0;
|
||||||
}
|
}
|
||||||
// handle negative values
|
// handle negative values
|
||||||
|
Loading…
Reference in New Issue
Block a user