always clear autocomplete after new matching
This commit is contained in:
parent
80347480be
commit
18aac563f4
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ c3nav = {
|
||||||
|
|
||||||
matches.sort(c3nav._typeahead_matches_compare);
|
matches.sort(c3nav._typeahead_matches_compare);
|
||||||
|
|
||||||
|
$autocomplete.html('');
|
||||||
for (i=0;i<matches.length;i++) {
|
for (i=0;i<matches.length;i++) {
|
||||||
$autocomplete.append(matches[i][0]);
|
$autocomplete.append(matches[i][0]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue