From ddc9b2362c60a6a86b7214b123e079cbe3dbe86e Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Tue, 22 Oct 2019 10:58:07 +0300 Subject: [PATCH] Fixed selection issue with TableState --- src/components/datatable/DataTable.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 118f1fe90..68932e9c6 100644 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -1505,10 +1505,9 @@ export default { this.$emit('update:expandedRowGroups', restoredState.expandedRowGroups); } - if (this.selection) { - this.selection = restoredState.selection; + if (restoredState.selection) { this.d_selectionKeys = restoredState.d_selectionKeys; - this.$emit('update:selection', this.selection); + this.$emit('update:selection', restoredState.selection); } } },