From 52a283a586e69a0d9cf3a959fda77ec73b52117a Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 24 Jul 2012 16:59:09 +0800 Subject: Bug 764517: Don't automatically select the first keyword if the search string is empty r=dkl, a=LpSolit --- js/field.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js') diff --git a/js/field.js b/js/field.js index 94876059e..f5376a4f2 100644 --- a/js/field.js +++ b/js/field.js @@ -909,6 +909,9 @@ YAHOO.bugzilla.fieldAutocomplete = { this.expandContainer(); } }); + fieldAutoComp.dataRequestEvent.subscribe( function(type, args) { + args[0].autoHighlight = args[1] != ''; + }); } }; -- cgit v1.2.3-24-g4f1b