Vuetify: [Bug Report] v-data-table expand function in item slot expands all rows

Created on 30 Aug 2019  路  6Comments  路  Source: vuetifyjs/vuetify

Environment

Vuetify Version: 2.0.11
Vue Version: 2.6.10
Browsers: Firefox 68.0
OS: Mac OS 10.14

Steps to reproduce

Use item slot and expanded-item slot in v-data-table.

Expected Behavior

The expand should open only the item clicked

Actual Behavior

It expands all the rows.

Reproduction Link

https://codepen.io/andrevferreira/pen/bGbrwbN

VDataTable

Most helpful comment

Your items need a unique key. id by default, or use item-key for custom

All 6 comments

Your items need a unique key. id by default, or use item-key for custom

Thank you @randanunn !

@randanunn thx

@randanunn not evident at all, many thanks for this!

Maybe consider adding ID to the demo at https://vuetifyjs.com/en/components/data-tables/#expandable-rows

It works but doesn't seem to include ID.

It uses item-key to specify a custom id property.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SteffenDE picture SteffenDE  路  3Comments

itanka9 picture itanka9  路  3Comments

Webifi picture Webifi  路  3Comments

milleraa picture milleraa  路  3Comments

Antway picture Antway  路  3Comments