LP#1942220: combobox: reset if idlQueryAnd changes
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 14 Dec 2021 16:06:52 +0000 (11:06 -0500)
committerJane Sandberg <js7389@princeton.edu>
Sun, 2 Oct 2022 15:02:50 +0000 (08:02 -0700)
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
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();
+            }
         }
     }