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