c2c09e8
click here to add a description
click here to add a homepage
The official jQuery user interface library. — Read more
http://jqueryui.com/
This URL has Read+Write access
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.
@@ -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);
@@ -79,6 +79,7 @@ $.widget( "ui.autocomplete", {
self.searching = setTimeout(function() {
// only search if the value has changed
if ( self.term != self.element.val() ) {
+ self.selectedItem = null;
self.search( null, event );
}, self.options.delay );
c2c09e8c2c09e8