mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Accordion: Fix back-compat for active option.
This commit is contained in:
2
ui/jquery.ui.accordion.js
vendored
2
ui/jquery.ui.accordion.js
vendored
@@ -60,7 +60,7 @@ $.widget( "ui.accordion", {
|
||||
.hide();
|
||||
|
||||
// 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;
|
||||
}
|
||||
// handle negative values
|
||||
|
||||
Reference in New Issue
Block a user