From 310bd15775581446b44dadd9f049551d7c6b2e7b Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 4 Jun 2021 11:00:05 -0400 Subject: [PATCH] combobox: ensure that values are return on click ... for both async and static data sources LH#54 Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 ba3cc959df..3d3939862f 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 @@ -497,7 +497,13 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit, AfterVie if (term === '') { return []; } // Clicking always displays the full list. - if (term === '_CLICK_') { term = ''; } + if (term === '_CLICK_') { + if (this.asyncDataSource) { + term = ''; + } else { + return this.entrylist; + } + } // Filter entrylist whose labels substring-match the // text entered. -- 2.11.0