LP1823367 Grid toolbar checkbox onChange repairs user/berick/lp1823367-ang-catalog-post-3.3-omnibus
authorBill Erickson <berickxx@gmail.com>
Tue, 28 May 2019 16:15:34 +0000 (12:15 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 28 May 2019 16:15:36 +0000 (12:15 -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>
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html

index 0de7ede..340bb3a 100644 (file)
@@ -19,7 +19,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>