Hi,
I’m currently in a situation where I want the user to add something to a list by selecting what they want to add and then a modal pops up with a list of lists. They can then select a list to add the item to that list (sorry if that was confusing).
So far I’ve got the modal opening up with AlpineJS and the modal itself is a Livewire component. The user can select a list and everything works as it should (things are stored in the database) but I’m struggling to figure out how to close the modal window on success. Additionally I’d like the modal to stay open on an error (if the list already contains the item).
How do I communicate between Livewire and AlpineJs?
Thanks.