Power-Components / livewire-powergrid

⚡ PowerGrid generates modern, powerful and easy-to-customize data tables using Laravel Livewire.
https://livewire-powergrid.com
MIT License
1.42k stars 208 forks source link

The detail button expands all rows #1609

Closed caiochami closed 1 week ago

caiochami commented 3 weeks ago

Have you searched through other issues to see if your problem is already reported or has been fixed?

Yes, I did not find it.

Did you read the documentation?

Yes, I did not find it.

Have you tried to publish the views?

Yes - I didn't work.

Is there an error in the console?

No

PHP Version

8.3.8

PowerGrid

5.8.1

Laravel

11.14.0

Livewire

3.5.2

Alpine JS

No response

Theme

Tailwind 3.x

Describe the bug.

If you add these settings to a data table, the detail button expands/collapses all rows. Can we specify which column to use as a row identifier?

image

To Reproduce...

Add custom primary keys to your data table

https://livewire-powergrid.com/table-component/data-source.html#custom-primary-key

image

Set up the detail button

https://livewire-powergrid.com/table-component/component-configuration.html#detail-row

image

image

image

Extra information

No response

luanfreitasdev commented 1 week ago

Fixed: https://github.com/Power-Components/livewire-powergrid/releases/tag/v5.10.0