Browse files

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.
  • Loading branch information...
1 parent 98f7e6a commit ddb4694cc1b4edcbff6a2abedccde027e47dcbc3 @scottgonzalez scottgonzalez committed Nov 30, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 demos/autocomplete/combobox.html
View
1 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;
}
}

0 comments on commit ddb4694

Please sign in to comment.