From a01e739a0e2712b13605f159efb908296ef31b30 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 12 Jul 2012 14:23:41 +0800 Subject: Bug 764517: Fix clearing the list of keywords and then pressing Enter causing the first keyword to be submitted --- js/field.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js') diff --git a/js/field.js b/js/field.js index 5f01904cd..a2e26fa17 100644 --- a/js/field.js +++ b/js/field.js @@ -790,5 +790,8 @@ YAHOO.bugzilla.keywordAutocomplete = { this.expandContainer(); } }); + fieldAutoComp.dataRequestEvent.subscribe( function(type, args) { + args[0].autoHighlight = args[1] != ''; + }); } }; -- cgit v1.2.3-24-g4f1b