LP1823367 Grid toolbar checkbox onChange repairs
authorBill Erickson <berickxx@gmail.com>
Tue, 28 May 2019 16:15:34 +0000 (12:15 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 1 Aug 2019 18:11:11 +0000 (14:11 -0400)
Update checkbox onChange handler in the grid toolbar to emit an event
instead of trying to call the handler like a function.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html

index 35781a5..55ca188 100644 (file)
@@ -25,7 +25,7 @@
         <label class="form-check-label">
           <input class="form-check-input" type="checkbox"
             [(ngModel)]="cb.isChecked"
-            (click)="cb.onChange($event.target.checked)"/>
+            (click)="cb.onChange.emit($event.target.checked)"/>
             {{cb.label}}
         </label>
       </ng-container>