From bd81163bcecc92e20febf5cdc7ac083a117c6056 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 24 Jul 2012 16:57:33 +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 2c3fd69b7..3d85ff116 100644 --- a/js/field.js +++ b/js/field.js @@ -787,5 +787,8 @@ YAHOO.bugzilla.keywordAutocomplete = { this.expandContainer(); } }); + fieldAutoComp.dataRequestEvent.subscribe( function(type, args) { + args[0].autoHighlight = args[1] != ''; + }); } }; -- cgit v1.2.3-24-g4f1b