What seems to be the problem:
When trying to do a wire:click and pass a post title to my backend, the wire click does not trigger the function when the “post title” has two words or more. But if a post title is a single word, it triggers my function. Is there a way around this?
Steps to Reproduce:
Front End
<button wire:click="selectPost({{ $post->id }}, {{ $post->title}})">Delete</button>
Back End
public function selectPost($id, $title)
{
dd("Working");
}
Are you using the latest version of Livewire:
Yes
Do you have any screenshots or code examples: