Skip to content

Commit 8d793a3

Browse files
committed
Sync async autocomplete filter with suggestion model
1 parent 7c8cd97 commit 8d793a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maven/core-unittests/src/test/java/com/codename1/samples/AutocompleteAsyncSampleTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ protected boolean filter(String text) {
183183
}
184184
if (text.length() == 0) {
185185
options.removeAll();
186+
super.filter(text);
186187
cancelPending();
187188
return true;
188189
}
@@ -204,6 +205,7 @@ public void run() {
204205
options.addItem(city);
205206
}
206207
}
208+
super.filter(filterText);
207209
pendingText.set(null);
208210
updateFilterList();
209211
}

0 commit comments

Comments
 (0)