aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-11-30 17:55:29 -0500
committerScott González <scott.gonzalez@gmail.com>2010-11-30 17:55:29 -0500
commitddb4694cc1b4edcbff6a2abedccde027e47dcbc3 (patch)
treef78ee97d7a9f0cb3f4ad48c751f8c8d6b88f2ffc /demos/autocomplete
parent98f7e6a8d615772fbddbf185241d087a95e5e121 (diff)
downloadjquery-ui-ddb4694cc1b4edcbff6a2abedccde027e47dcbc3.tar.gz
jquery-ui-ddb4694cc1b4edcbff6a2abedccde027e47dcbc3.zip
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.
Diffstat (limited to 'demos/autocomplete')
-rw-r--r--demos/autocomplete/combobox.html1
1 files changed, 1 insertions, 0 deletions
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;
}
}