@servicemind.tis/tis-smart-table-viewer 2.3.17 → 2.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2537,7 +2537,11 @@ class TisSmartTableViewerComponent {
|
|
|
2537
2537
|
this.allRowsSelectedChange.emit(this.isAllRowsSelected);
|
|
2538
2538
|
return;
|
|
2539
2539
|
}
|
|
2540
|
-
this.isAllRowsSelected =
|
|
2540
|
+
this.isAllRowsSelected = this.dataSource.apiSubject.value.every((row) => {
|
|
2541
|
+
const selected = this.selection?.selected.find(selection => selection[this.selectedRowKey] == row[this.selectedRowKey]);
|
|
2542
|
+
return !!selected;
|
|
2543
|
+
});
|
|
2544
|
+
// this.isAllRowsSelected = (this.selection.selected.length >= this.dataSource.apiSubject.value.length);
|
|
2541
2545
|
this.allRowsSelectedChange.emit(this.isAllRowsSelected);
|
|
2542
2546
|
}
|
|
2543
2547
|
toggleAllRows() {
|