From 6c97e0a8f07c1877dee042d895a2f955815ec145 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 22 Aug 2022 15:49:02 +0100 Subject: [PATCH] Fixed #2346 - Datatable column order state is not saved --- src/components/datatable/DataTable.vue | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index d838e4a6e..2efad30d3 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -415,16 +415,6 @@ export default { mounted() { this.allChildren = this.$children; - if (this.reorderableColumns) { - let columnOrder = []; - for (let child of this.allChildren) { - if (child.$options._propKeys.indexOf('columnKey') !== -1) { - columnOrder.push(child.columnKey||child.field); - } - } - this.d_columnOrder = columnOrder; - } - this.$el.setAttribute(this.attributeSelector, ''); if (this.responsiveLayout === 'stack' && !this.scrollable) {