fix: 🐛 Show all rows in restore state
When you refresh datatable after some rows are hidden, after refresh they remain hidden.
This commit is contained in:
parent
d01e045157
commit
f790a6729a
@ -16,7 +16,7 @@
|
||||
"travis-deploy-once": "travis-deploy-once",
|
||||
"semantic-release": "semantic-release",
|
||||
"lint": "eslint src",
|
||||
"commit": "git cz"
|
||||
"commit": "npx git-cz"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
|
||||
@ -67,6 +67,7 @@ export default class BodyRenderer {
|
||||
}
|
||||
|
||||
restoreState() {
|
||||
this.rowmanager.showAllRows();
|
||||
this.rowmanager.highlightCheckedRows();
|
||||
this.cellmanager.selectAreaOnClusterChanged();
|
||||
this.cellmanager.focusCellOnClusterChanged();
|
||||
|
||||
@ -188,6 +188,11 @@ export default class RowManager {
|
||||
this.style.removeStyle(selector);
|
||||
}
|
||||
|
||||
showAllRows() {
|
||||
const rowIndices = this.datamanager.getAllRowIndices();
|
||||
this.showRows(rowIndices);
|
||||
}
|
||||
|
||||
openSingleNode(rowIndex) {
|
||||
const rowsToShow = this.datamanager.getImmediateChildren(rowIndex);
|
||||
this.showRows(rowsToShow);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user