Fixes situation where combobox would fetch the needed entries in async
mode, but fail to open the drop-down.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
(entry: ComboboxEntry) => this.addAsyncEntry(entry),
err => {},
() => {
- observer.next(searchTerm);
+ observer.next(term);
observer.complete();
}
);
// click action occurred.
if (term === '') { return []; }
- // In sync-data mode, a click displays the full list.
- if (term === '_CLICK_' && !this.asyncDataSource) {
- return this.entrylist;
- }
+ // Clicking always displays the full list.
+ if (term === '_CLICK_') { term = ''; }
// Filter entrylist whose labels substring-match the
// text entered.