File Upload in forms disrupts the ongoing typing process in other inputs
Hello!
I need your help with a rather strange issue.
I’m working on a form that contains a FileUpload component followed by several text inputs. Everything works well except for one specific edge case:
When a user starts uploading an image and simultaneously types into a text input, a few of the recently typed characters are lost once the upload completes (during the afterStateUpdated event).
I’ve tried various approaches to intercept the flow and retain those typed values, but nothing has worked so far.
Intuitively, it feels like I need a mechanism like an uploadOngoing flag to track the upload state and prevent interference — but I haven’t found a reliable way to implement it. I also came across a similar unresolved discussion on Answerflow.
Would appreciate any guidance or workaround ideas you might have!
2 Replies
The code:
Answerflow posting: https://www.answeroverflow.com/m/1341385577194586154
Text input gets deleted after file upload is done - Filament
I have a very simple form
The problem is that if you start a file upload and begin typing before the upload is done, some of the text you've typed gets deleted when the upload is done.
I've attached a video of how this looks. In it you can see that even though I have ...