Skip to content

Commit eb392b3

Browse files
committed
Accordion: Fix back-compat for active option.
1 parent 78f781f commit eb392b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.accordion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $.widget( "ui.accordion", {
6060
.hide();
6161

6262
// don't allow collapsible: false and active: false / null
63-
if ( !options.collapsible && ( !options.active || typeof options.active !== "number" ) ) {
63+
if ( !options.collapsible && (options.active === false || options.active == null) ) {
6464
options.active = 0;
6565
}
6666
// handle negative values

0 commit comments

Comments
 (0)