From cb4c7cc8921c04886688d0eec784ecf03bab305c Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 4 Dec 2020 11:17:51 -0500 Subject: [PATCH] JBAS-2567 Combobox asyncSupportsEmptyTermClick fix Fixes situation where combobox would fetch the needed entries in async mode, but fail to open the drop-down. Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts index 50241894e5..ba3cc959df 100644 --- a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts +++ b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts @@ -466,7 +466,7 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit, AfterVie (entry: ComboboxEntry) => this.addAsyncEntry(entry), err => {}, () => { - observer.next(searchTerm); + observer.next(term); observer.complete(); } ); @@ -496,10 +496,8 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit, AfterVie // 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. -- 2.11.0