From: Galen Charlton Date: Tue, 14 Dec 2021 16:06:52 +0000 (-0500) Subject: LP#1942220: combobox: reset if idlQueryAnd changes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=08c9567fea8c32994b41a3e75b5ef2279a752305;p=working%2FEvergreen.git LP#1942220: combobox: reset if idlQueryAnd changes Signed-off-by: Galen Charlton Signed-off-by: Ruth Frasur Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- 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 1385756ced..c9885bf428 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 @@ -354,6 +354,12 @@ export class ComboboxComponent implements ControlValueAccessor, OnInit, AfterVie this.selected = null; this.ngOnInit(); } + if ('idlQueryAnd' in changes) { + this.asyncIds = {}; + this.entrylist.length = 0; + this.selected = null; + this.ngOnInit(); + } } }