From 849cf3efb7f5668209feaa8cda92d2a15b39a07b Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Tue, 5 Sep 2017 17:25:23 +0000 Subject: [PATCH] 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 --- src/wp-admin/js/theme.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index 15fe7050f7..e91c0d16b7 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -105,7 +105,10 @@ themes.view.Appearance = wp.Backbone.View.extend({ view.render(); this.searchContainer .append( $.parseHTML( '' ) ) - .append( view.el ); + .append( view.el ) + .on( 'submit', function( event ) { + event.preventDefault(); + }); }, // Checks when the user gets close to the bottom