Fixed #2346 - Datatable column order state is not saved
parent
fe8f56ec4a
commit
6c97e0a8f0
|
@ -415,16 +415,6 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.allChildren = this.$children;
|
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, '');
|
this.$el.setAttribute(this.attributeSelector, '');
|
||||||
|
|
||||||
if (this.responsiveLayout === 'stack' && !this.scrollable) {
|
if (this.responsiveLayout === 'stack' && !this.scrollable) {
|
||||||
|
|
Loading…
Reference in New Issue