What seems to be the problem:
Hi!, I’ve been learning to code with Livewire, so far I’ve been able to do everything I need, I’m very happy I found it.
I have a shared search dropdown that deploys with a wire:model that sets the id of a specific iteration from a loop, everything works great, but I haven’t figured out how to reset that property when clicking anywhere else. Even when I click the search bar deploying button of any other loop, the search resumes right where I left it from the last loop. I read about some sort of click away with Alpine in the docs, but I don’t have any knowledge about that tool whatsoever, or any Js. Is there another way I can solve this?
I extracted what I think is the relevant part of my code, sorry if my code is not well pasted, didn’t figure out how to do it right. Thanks a lot for any help