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.

Built from https://develop.svn.wordpress.org/trunk@53267


git-svn-id: http://core.svn.wordpress.org/trunk@52856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-04-26 06:54:09 +00:00
parent 813c4d604c
commit 22de3f7711
3 changed files with 3 additions and 3 deletions

View File

@ -1457,7 +1457,7 @@
self.container.addClass( 'expanding' ); self.container.addClass( 'expanding' );
}; };
if ( expanded ) { if ( $toggleBtn.attr( 'aria-expanded' ) === 'false' ) {
if ( api.section.has( self.section() ) ) { if ( api.section.has( self.section() ) ) {
api.section( self.section() ).expand( { api.section( self.section() ).expand( {
completeCallback: expandControl completeCallback: expandControl

File diff suppressed because one or more lines are too long

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.0-beta2-53266'; $wp_version = '6.0-beta2-53267';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.