-
-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
I'm having really hard times trying to make input[type=file]
play nicely with mobx-react-form
.
It doesn't work out of the box and native behavior is broken.
When a file is chosen field.files
property got updated, but:
- Native input is not updated (still shows: "No file selected")
- Validation of the field is not called, so the form is still rendered invalid
form.values()
does not contain files selected, so basically you have to implement your own method to collect all the values
Can someone provide a very simple and limited example of the form with one required input[type=file]
with form validation on file selection change and collecting the data for submit without picking data from the field itself?
Metadata
Metadata
Assignees
Labels
No labels