From c2c09e89538ce071efba7ca1e923b5627c236f8c Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 20 Jul 2010 13:24:53 -0400 Subject: Autocomplete: Clear selectedItem property whenever the user types something. Also updated combobox to clear the select element when clearing the text element. Fixes #5453 - Autocomplete: combobox demo doesn't remove invalid values. --- demos/autocomplete/combobox.html | 1 + 1 file changed, 1 insertion(+) (limited to 'demos/autocomplete/combobox.html') diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index 4cc98d8f9..6c81b25eb 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -43,6 +43,7 @@ if (!ui.item) { // remove invalid value, as it didn't match anything $(this).val(""); + select.val(""); return false; } select.val(ui.item.id); -- cgit v1.2.3