mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Customizer: in menus, reset results when closing the 'add items' panel.
Trigger a keyup event when clearing the search field in response to closing the add item panel. The keyup event triggers a search and resets the results. Previously, the search field was cleared while the potentially blank search results were left in place making it impossible to select new menu items. Props Blair jersyer, aranwer104, afercia. Fixes #43333. Built from https://develop.svn.wordpress.org/trunk@42744 git-svn-id: http://core.svn.wordpress.org/trunk@42574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b34b1ee061
commit
de6906a045
@ -727,7 +727,7 @@
|
||||
$( 'body' ).removeClass( 'adding-menu-items' );
|
||||
$( '#available-menu-items .menu-item-handle.item-added' ).removeClass( 'item-added' );
|
||||
|
||||
this.$search.val( '' );
|
||||
this.$search.val( '' ).trigger( 'keyup' );
|
||||
},
|
||||
|
||||
// Add a few keyboard enhancements to the panel.
|
||||
|
2
wp-admin/js/customize-nav-menus.min.js
vendored
2
wp-admin/js/customize-nav-menus.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-42743';
|
||||
$wp_version = '5.0-alpha-42744';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user