changeset 19 | 3d72ae0968f4 |
parent 18 | be944660c56a |
child 21 | 48c4eec2b7e6 |
--- a/wp/wp-admin/js/customize-widgets.js Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-admin/js/customize-widgets.js Tue Sep 27 16:37:53 2022 +0200 @@ -1457,7 +1457,7 @@ self.container.addClass( 'expanding' ); }; - if ( expanded ) { + if ( $toggleBtn.attr( 'aria-expanded' ) === 'false' ) { if ( api.section.has( self.section() ) ) { api.section( self.section() ).expand( { completeCallback: expandControl