mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #4855 - DataTable: restore state defect
This commit is contained in:
parent
8f595b2b57
commit
56e9c4b487
1 changed files with 4 additions and 7 deletions
|
@ -416,11 +416,6 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
if (this.isStateful()) {
|
||||
this.restoreState();
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$el.setAttribute(this.attributeSelector, '');
|
||||
|
||||
|
@ -428,8 +423,10 @@ export default {
|
|||
this.createResponsiveStyle();
|
||||
}
|
||||
|
||||
if (this.isStateful() && this.resizableColumns) {
|
||||
this.restoreColumnWidths();
|
||||
if (this.isStateful()) {
|
||||
this.restoreState();
|
||||
|
||||
this.resizableColumns && this.restoreColumnWidths();
|
||||
}
|
||||
|
||||
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue