From dea2f8a7fc1d7c1d8fbf69aa50d7c1f28c3f35b6 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Tue, 31 Aug 2010 14:20:56 +0200 Subject: [PATCH] Autocomplete: Store term when selecting an item to prevent another search triggered before blur. Fixes #5591 - Home and End keys trigger search --- ui/jquery.ui.autocomplete.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index e8796e41e..6cdbb4db7 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -163,6 +163,7 @@ $.widget( "ui.autocomplete", { } if ( false !== self._trigger( "select", event, { item: item } ) ) { + self.term = item.value; self.element.val( item.value ); } -- 2.39.5