i have a post livewire component in which has 2 child: createpost and updatepost. both createpost and updatepost has the same blade view and hence they render the same view:
return view('components.test.modal-form');
createpost is called from a button post blade view and updatepost is called from the button insinde list in post blade view
inside modal-form, i’m using choicesjs for a searchable select. however the select are just plain one instead of choices js selects
if i use wire:ignore, the select is choices js but it wont get the data when i use it to update.
both form codes are exactly the same except for the button and title so i trying to avoid redundant codes