What seems to be the problem:
Removing items from a list, the elements left behind aren’t responding correctly. Clicking the element does nothing, clicking the checkbox populates the selection
array with duplicates.
Steps to Reproduce:
See the playground here https://laravelplayground.com/#/snippets/e522714f-f15d-4314-b478-7a665a1e89a3
I’m looping over an array of items, the item in the loop has an Alpine x-on:click
event that works on initial load, but fails on the element when items are removed.
The looped elements have a wire:key
of the items uuid, I’ve also tried with wire:key="{{ $loop->index }}"
Are you using the latest version of Livewire: v2.3.17
Do you have any screenshots or code examples: