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:
Gary Pendergast 2019-07-18 05:55:59 +00:00
parent 7149d65934
commit 22412b1d97
3 changed files with 5 additions and 4 deletions

View File

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

File diff suppressed because one or more lines are too long

View File

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