Skip to content

Commit

Permalink
Fixed #1269 - DataTable does not honor initial selection
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jun 11, 2021
1 parent bc47399 commit e21906e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/datatable/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,12 @@ export default {
multiSortMeta(newValue) {
this.d_multiSortMeta = newValue;
},
selection(newValue) {
if (this.dataKey) {
this.updateSelectionKeys(newValue);
selection: {
immediate: true,
handler(newValue) {
if (this.dataKey) {
this.updateSelectionKeys(newValue);
}
}
},
expandedRows(newValue) {
Expand Down

0 comments on commit e21906e

Please sign in to comment.