From e21906e672f866ea003e196de630d931ee9ab0d9 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 11 Jun 2021 15:11:02 +0300 Subject: [PATCH] Fixed #1269 - DataTable does not honor initial selection --- src/components/datatable/DataTable.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 6fdefdb070..9bc5c3d66a 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -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) {