LP#1942220: combobox: reset if idlQueryAnd changes
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 14 Dec 2021 16:06:52 +0000 (11:06 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 29 Aug 2022 22:43:58 +0000 (22:43 +0000)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts

index 1385756..c9885bf 100644 (file)
@@ -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();
+            }
         }
     }