Themes: Prevent the Themes search field default action after [40572].

Props boonebgorges.
Fixes #41803.


git-svn-id: https://develop.svn.wordpress.org/trunk@41337 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2017-09-05 17:25:23 +00:00
parent 5f06aaca1c
commit 849cf3efb7
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ themes.view.Appearance = wp.Backbone.View.extend({
view.render();
this.searchContainer
.append( $.parseHTML( '<label class="screen-reader-text" for="wp-filter-search-input">' + l10n.search + '</label>' ) )
.append( view.el );
.append( view.el )
.on( 'submit', function( event ) {
event.preventDefault();
});
},
// Checks when the user gets close to the bottom