From f639366590a55707fc943884658176b1b356a90e Mon Sep 17 00:00:00 2001 From: Ella Iseulde Van Dorpe Date: Mon, 25 May 2015 06:40:27 +0000 Subject: [PATCH] Link modal: reset search results appropriately Reset the search results when the input field is emptied with the browser's "clear" button inside that field. Fixes #32174. git-svn-id: https://develop.svn.wordpress.org/trunk@32593 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/wplink.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/wplink.js b/src/wp-includes/js/wplink.js index 31489f8357..b685365584 100644 --- a/src/wp-includes/js/wplink.js +++ b/src/wp-includes/js/wplink.js @@ -68,7 +68,7 @@ var wpLink; inputs.queryNoticeTextHint.addClass( 'screen-reader-text' ).hide(); } ); - inputs.search.keyup( function() { + inputs.search.on( 'keyup input', function() { var self = this; window.clearTimeout( searchTimer );