diff --git a/ui/widgets/accordion.js b/ui/widgets/accordion.js index 359b4c46f..a234c272f 100644 --- a/ui/widgets/accordion.js +++ b/ui/widgets/accordion.js @@ -239,7 +239,8 @@ return $.widget( "ui.accordion", { this._processPanels(); // Was collapsed or no panel - if ( ( options.active === false && options.collapsible === true ) || !this.headers.length ) { + if ( ( options.active === false && options.collapsible === true ) || + !this.headers.length ) { options.active = false; this.active = $();