From ddb4694cc1b4edcbff6a2abedccde027e47dcbc3 Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 30 Nov 2010 17:55:29 -0500 Subject: Autocomplete combobox demo: Reset the internal term property when an invalid selection is made. Fixes #6695 - Autocomplete combobox example does not show suggestion on second try. --- 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 ab939a036..9f92ae108 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -67,6 +67,7 @@ // remove invalid value, as it didn't match anything $( this ).val( "" ); select.val( "" ); + input.data( "autocomplete" ).term = ""; return false; } } -- cgit v1.2.3