From ddb4694cc1b4edcbff6a2abedccde027e47dcbc3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 30 Nov 2010 17:55:29 -0500 Subject: [PATCH] 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(+) 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; } } -- 2.39.5