From: Galen Charlton Date: Fri, 4 Jun 2021 15:00:05 +0000 (-0400) Subject: combobox: ensure that values are return on click X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=310bd15775581446b44dadd9f049551d7c6b2e7b;p=working%2FEvergreen.git combobox: ensure that values are return on click ... for both async and static data sources LH#54 Signed-off-by: Galen Charlton --- 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.