Widgets: Fix Classic Widgets screen toggle response on small screens.

This changeset updates the toogle logic to fix Widget's responsive behavior on Classic Widgets screen.

Props inc2734, kmix39, dlh, desrosj, costdev, Boniu91.
Fixes #48896.


git-svn-id: https://develop.svn.wordpress.org/trunk@53267 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-04-26 06:52:30 +00:00
parent 325d8bab0a
commit e53a3ea0c0

View File

@ -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