Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

burfi's avatar

Livewire Table issue

I have a Livewire table. In this each row has a visible content row and a hidden content row. All works fine in the normal state.

https://postimg.cc/VSjcCGgw

When I filter the rows using search, the ID's are messed up. I can't understand why. When I am using the same ID from the for loop, why does LW changes these ID's?

https://postimg.cc/qhD6Cxpk

In the second image, the results are filtered. You could see the actual ID from the for loop in the table, but LW is not picking the correct ID's for the "hidden" rows (in the filtered mode). Why?

I am pasting the code snippet below...

0 likes
2 replies
Snapey's avatar
Snapey
Best Answer
Level 122

Happy to be corrected by :key is not a shorthand for wire:key

:key is used when you need to pass a key into a child component

Please or to participate in this conversation.