aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-20 13:24:53 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-20 13:24:53 -0400
commitc2c09e89538ce071efba7ca1e923b5627c236f8c (patch)
tree7502e74e542c0932a19189479987f488920da07b /demos/autocomplete
parente4273ff6212040bd721184d661a39f046c4a461d (diff)
downloadjquery-ui-c2c09e89538ce071efba7ca1e923b5627c236f8c.tar.gz
jquery-ui-c2c09e89538ce071efba7ca1e923b5627c236f8c.zip
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.
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 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);