Skip to content
Snippets Groups Projects
Commit bff3a2e5 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon:
Browse files

Fix display of collapsed rows on set default-order

parent 25a6fdc1
No related branches found
No related tags found
No related merge requests found
Pipeline #12272 passed
...@@ -185,8 +185,9 @@ export class DataTableView extends LitElement { ...@@ -185,8 +185,9 @@ export class DataTableView extends LitElement {
this.data = data; this.data = data;
this.table.clear(); this.table.clear();
if (this.data.length) { this.table.rows.add(this.data); } if (this.data.length) {
this.table.order(this.defaultOrder).draw(); this.table.rows.add(this.data);
}
new $.fn.dataTable.Responsive(this.table, { new $.fn.dataTable.Responsive(this.table, {
details: true details: true
...@@ -213,6 +214,10 @@ export class DataTableView extends LitElement { ...@@ -213,6 +214,10 @@ export class DataTableView extends LitElement {
} }
}); });
} }
this.table.order(this.defaultOrder);
this.table.draw();
return this; return this;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment