F
Filament2mo ago
FL

File upload and text input in action modal

If I have a file upload in action (modal) and a text input field in the same form. If you upload a file and start writing to the text input while that file is uploading, the moment the file uploads will delete some of the last typed characters from the text input field. Anyone else see this issue? Is there any workaround?
3 Replies
toeknee
toeknee2mo ago
This is commond place in that the upload happens on live, if you want to stop typing when uploading you can add a wire loading indicator? theres lots of posts in hear recently that I made on how to with code too
FL
FLOP2mo ago
Thanks for the clarification @toeknee. I know how to do it with loading. Just wanted to check if i was doing something wrong or if there was a different way of doing it.
toeknee
toeknee2mo ago
Not really because it's livewire, so we send it over the request and once the request has finished it updates. I would say maybe have a debounce on the text input/

Did you find this page helpful?