Skip to content

Commit

Permalink
Fixed #1631 - The editingRows property is not working with initial va…
Browse files Browse the repository at this point in the history
…lue on DataTable
  • Loading branch information
mertsincan committed Oct 4, 2021
1 parent b5fd87d commit 2eb45a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/datatable/DataTable.vue
Expand Up @@ -407,6 +407,10 @@ export default {
if (this.isStateful() && this.resizableColumns) {
this.restoreColumnWidths();
}
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
this.updateEditingRowKeys(this.editingRows);
}
},
beforeUnmount() {
this.unbindColumnResizeEvents();
Expand All @@ -417,6 +421,10 @@ export default {
if (this.isStateful()) {
this.saveState();
}
if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
this.updateEditingRowKeys(this.editingRows);
}
},
methods: {
columnProp(col, prop) {
Expand Down

0 comments on commit 2eb45a5

Please sign in to comment.