Skip to content

Commit ddb4694

Browse files
committed
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.
1 parent 98f7e6a commit ddb4694

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

demos/autocomplete/combobox.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
// remove invalid value, as it didn't match anything
6868
$( this ).val( "" );
6969
select.val( "" );
70+
input.data( "autocomplete" ).term = "";
7071
return false;
7172
}
7273
}

0 commit comments

Comments
 (0)