Livewire multiple wire:click, first one works, rest do not

前端 未结 2 1553
遥遥无期
遥遥无期 2021-01-27 08:21

I am putting together a CRUD app using livewire and my issue is with wire:click on the different buttons. I have a create modal come up and the wire:click in that modal works pe

2条回答
  •  忘掉有多难
    2021-01-27 09:04

    Livewire uses a complex DOM diffing algorithm to intelligently swap components. So When you have loops make sure to add keys and wrap them in a parent container.

提交回复
热议问题