From 3090acb68b05a3e029dad5fd50c6956858327934 Mon Sep 17 00:00:00 2001 From: m4tx Date: Fri, 2 Jan 2015 02:26:26 +0100 Subject: [PATCH] Don't replace user text with suggestion in searchbox On Enter press, there was highlight() called, which also replaced the text. Since it seems to have no use here (highlight() highlights the selected suggestion in the box, but the box is immediately hidden, and there's probably no case when the suggestion is chosen, but the text in searchbox does not match it), it was removed. Bug: T53900 Change-Id: I9fc2e954ae429ba166ddc7c713f9790a25a837c2 --- resources/src/jquery/jquery.suggestions.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/resources/src/jquery/jquery.suggestions.js b/resources/src/jquery/jquery.suggestions.js index 3369cde296..a83a70aa6b 100644 --- a/resources/src/jquery/jquery.suggestions.js +++ b/resources/src/jquery/jquery.suggestions.js @@ -474,8 +474,6 @@ $.suggestions = { } } } else { - $.suggestions.highlight( context, selected, true ); - if ( typeof context.config.result.select === 'function' ) { // Allow the callback to decide whether to prevent default or not if ( context.config.result.select.call( selected, context.data.$textbox ) === true ) { -- 2.20.1