From ce6221468cffb4c9876bcb77030a2048459c2c69 Mon Sep 17 00:00:00 2001 From: emmettxt <78160403+emmettxt@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:11:37 +0100 Subject: [PATCH] fix(VDataTable): broken design with many nested headers (#18732) fixes #18679 --- .../vuetify/src/components/VDataTable/composables/headers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuetify/src/components/VDataTable/composables/headers.ts b/packages/vuetify/src/components/VDataTable/composables/headers.ts index 45039188479..e6e010d25bb 100644 --- a/packages/vuetify/src/components/VDataTable/composables/headers.ts +++ b/packages/vuetify/src/components/VDataTable/composables/headers.ts @@ -179,7 +179,7 @@ function parse (items: InternalDataTableHeader[], maxDepth: number) { if (item.children) { for (const child of item.children) { // This internally sorts items that are on the same priority "row" - const sort = priority % 1 + (fraction / Math.pow(10, currentDepth + 1)) + const sort = priority % 1 + (fraction / Math.pow(10, currentDepth + 2)) queue.enqueue(child, currentDepth + diff + sort) } }