Fixed select ALL logic.
@@ -27,7 +27,10 @@ export default class {
this.applyValues();
this.gridApi.grid.registerDataChangeCallback(() => this.applyValues(), [this.uiGridConstants.dataChange.ROW]);
+ // Used to toggle selected of one row.
this.gridApi.selection.on.rowSelectionChanged(this.$scope, () => this.applyValues());
+ // Used to toggle all selected of rows.
+ this.gridApi.selection.on.rowSelectionChangedBatch(this.$scope, () => this.applyValues());
}
}
