File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -347,17 +347,23 @@ $.widget( "ui.accordion", {
347347 // switch classes
348348 active
349349 .removeClass( "ui-accordion-header-active ui-state-active ui-corner-top" )
350- .addClass( "ui-corner-all" )
351- .children( ".ui-accordion-header-icon" )
350+ .addClass( "ui-corner-all" );
351+ if ( options.icons ) {
352+ active.children( ".ui-accordion-header-icon" )
352353 .removeClass( options.icons.activeHeader )
353354 .addClass( options.icons.header );
355+ }
356+
354357 if ( !clickedIsActive ) {
355358 clicked
356359 .removeClass( "ui-corner-all" )
357- .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" )
358- .children( ".ui-accordion-header-icon" )
360+ .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" );
361+ if ( options.icons ) {
362+ clicked.children( ".ui-accordion-header-icon" )
359363 .removeClass( options.icons.header )
360364 .addClass( options.icons.activeHeader );
365+ }
366+
361367 clicked
362368 .next()
363369 .addClass( "ui-accordion-content-active" );
You can’t perform that action at this time.
0 commit comments