diff --git a/src/rowmanager.js b/src/rowmanager.js index 16eb5f5..6f27bf0 100644 --- a/src/rowmanager.js +++ b/src/rowmanager.js @@ -113,7 +113,13 @@ export default class RowManager { // update internal map if (toggle) { - this.checkMap = Array.from(Array(this.getTotalRows())).map(c => value); + if (this.datamanager._filteredRows) { + this.datamanager._filteredRows.forEach(f => { + this.checkRow(f, toggle); + }); + } else { + this.checkMap = Array.from(Array(this.getTotalRows())).map(c => value); + } } else { this.checkMap = []; }