mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Customizer: Show all widgets when the search field is cleared.
When clicking the clear button on the widget search field, the search results should refresh to show all widgets. Props Mahesh901122. Fixes #47534. Built from https://develop.svn.wordpress.org/trunk@45658 git-svn-id: http://core.svn.wordpress.org/trunk@45469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7149d65934
commit
22412b1d97
@ -191,9 +191,10 @@
|
||||
}
|
||||
} );
|
||||
|
||||
// Clear the search results and trigger a `keyup` event to fire a new search.
|
||||
// Clear the search results and trigger a new search.
|
||||
this.$clearResults.on( 'click', function() {
|
||||
self.$search.val( '' ).focus().trigger( 'keyup' );
|
||||
self.$search.val( '' ).focus();
|
||||
self.collection.doSearch( '' );
|
||||
} );
|
||||
|
||||
// Close the panel if the URL in the preview changes
|
||||
|
2
wp-admin/js/customize-widgets.min.js
vendored
2
wp-admin/js/customize-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45657';
|
||||
$wp_version = '5.3-alpha-45658';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user