Description
Input with wire:model, button with wire:click, etc cause the parent Bootstrap collapse field to close.
Steps to reproduce
On a Livewire component, add a Bootstrap collapse as described in https://getbootstrap.com/docs/4.5/components/collapse/. Within the content of the collapsed element, add any input or button with a wire:model or wire:click. When the input is changed or the button is clicked, the opened collapse content is closed.
For a simple example, please see https://laravelplayground.com/#/snippets/ee1ba496-de77-4b29-8feb-70243ca89fc7 where I have added a simple button with a wire:click to set a message, which causes the error. There is also a standard button with a js function to set a span's content, which does not close the collapse.
Description
Input with wire:model, button with wire:click, etc cause the parent Bootstrap collapse field to close.
Steps to reproduce
On a Livewire component, add a Bootstrap collapse as described in https://getbootstrap.com/docs/4.5/components/collapse/. Within the content of the collapsed element, add any input or button with a wire:model or wire:click. When the input is changed or the button is clicked, the opened collapse content is closed.
For a simple example, please see https://laravelplayground.com/#/snippets/ee1ba496-de77-4b29-8feb-70243ca89fc7 where I have added a simple button with a wire:click to set a message, which causes the error. There is also a standard button with a js function to set a span's content, which does not close the collapse.