wireui / wireui

TallStack UI components
https://v1.wireui.dev
MIT License
1.37k stars 166 forks source link

Clearing Multiselect after form submission #771

Closed paaqwesilowelltetteh closed 6 months ago

paaqwesilowelltetteh commented 6 months ago

Would like to request the ability to clear the the multiselect feature after form submission in livewire

PH7-Jack commented 6 months ago

Hi, you can clear the select model direct from livewire, then, the multiselect will be clean. Do it in your "save" method. $this->yourModel = [];

paaqwesilowelltetteh commented 6 months ago

Alright. Thank you. I have another use case where I am submitting form using javascript form submission. Is there a way I can clear the multi select and select components?