Bug reportDec 3, 2026· 0:22· 12 views
Vuetify 4.1: v-data-table row striping broken when expansion slot is used — all main rows same colour
0:22 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
mediumVDataTable rows/striping styles: the tr:nth-child based striping selector should ignore expanded-row tr elements, for example by striping on item index or using a class on main rows.
os: macOSapp: Vuetify Play (play.vuetifyjs.com)dpr: 1locale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720vuetify_version: 4.1 (per user title)
Repro steps
- 1.Open Vuetify Play with App.vue containing a v-data-table bound to :headers="headers" :items="items" with a template v-slot:expanded="{ item }".
- 2.Let the preview render the table with 5 items, with columns Id, Parity, Intended background, Actual background and Index of tr-element.
- 3.Compare the background of odd and even main rows in the preview.
Expected
Main rows alternate their background. Rows 1, 3 and 5 are Dark and rows 2 and 4 are Light, as listed in the Intended background column.
Actual
All five main rows render Dark. The Index of tr-element column reads 1, 3, 5, 7, 9, so every main row sits at an odd tr position. The expansion slot adds its own tr-element and shifts the tr:nth-child striping.
Evidence
visualPreview shows Intended background Dark, Light, Dark, Light, Dark and Actual background Dark for all five rows.
visualIndex of tr-element column reads 1, 3, 5, 7, 9. Main rows only occupy odd tr positions.
visualApp.vue slot text states that striping is implemented via tr:nth-child and that the expansion tr-element bypasses the intended striping.
visualState is unchanged. Rows 2 and 4 still show Actual background Dark. Footer shows Items per page 10 and 1-5 of 5.
consoleMonaco editor listener LEAK warnings, then '[217] REFUSES to accept new listeners because it exceeded its threshold by far'. These come from the playground editor and are likely unrelated to the striping bug.
consolevolar-service-emmet and volar-service-pug warn they are not yet supported for web. These are playground noise.
Issue markdown (copy-paste ready)
## Summary
With Vuetify 4.1 (per reporter), `v-data-table` row striping breaks when the `expanded` slot is used. Every main row renders the same background.
## Environment
- Chromium 151.0.7922.34, macOS
- Viewport 1280x720, DPR 1
- Vuetify Play
## Steps to reproduce
1. Open Vuetify Play with a `v-data-table` using `:headers="headers" :items="items"` and `template v-slot:expanded="{ item }"` (0s).
2. Let the preview render 5 items (0s).
3. Compare the backgrounds of odd and even main rows (5s).
## Expected
Main rows alternate. Rows 1, 3 and 5 are Dark. Rows 2 and 4 are Light.
## Actual
All 5 main rows render Dark (0s to 21s). The Index of tr-element column shows 1, 3, 5, 7, 9. Each expansion slot adds a tr-element, so every main row lands on an odd `tr:nth-child` position.
## Evidence
- 0s: Intended background Dark/Light/Dark/Light/Dark. Actual background Dark for all rows.
- 0s: tr indices 1, 3, 5, 7, 9.
- 21s: State unchanged. Footer shows 1-5 of 5.
- 0s to 1.5s: Monaco listener LEAK console warnings. These are playground editor noise and likely unrelated.
## Suggested area
VDataTable striping CSS. The `tr:nth-child` selector counts expanded-row tr elements. Stripe by item index or by a main-row class instead.
*Recorded with SceneRecap.*This report was written by SceneRecap from a screen recording. Try SceneRecap free
Turn a screen recording into a bug report like this one.
Repro steps, expected vs actual and the console and network evidence, each with a timestamp. On every plan, Free included.
Try SceneRecap free →