@trudb/tru-common-lib 0.2.1 → 0.2.3
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.
|
@@ -7515,16 +7515,15 @@ class TruDataGrid {
|
|
|
7515
7515
|
};
|
|
7516
7516
|
onRemove = () => {
|
|
7517
7517
|
let selectedRows = this.api.getSelectedRows();
|
|
7518
|
+
let filteredRows = [];
|
|
7518
7519
|
this.api.forEachNodeAfterFilter(node => {
|
|
7519
|
-
|
|
7520
|
+
filteredRows.push(node.data);
|
|
7520
7521
|
});
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
selectedRows = this.api.getSelectedRows();
|
|
7524
|
-
if (selectedRows.length)
|
|
7525
|
-
this.rowData = this.api.getSelectedRows();
|
|
7522
|
+
if (filteredRows.length)
|
|
7523
|
+
this.rowData = selectedRows;
|
|
7526
7524
|
else
|
|
7527
7525
|
this.rowData = [];
|
|
7526
|
+
this.api.applyTransaction({ remove: selectedRows });
|
|
7528
7527
|
};
|
|
7529
7528
|
onExport = () => {
|
|
7530
7529
|
this.exportData();
|