-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File object becomes a basic js object #1233
Comments
@oterral , yes, that makes sense, you can just add a check to see if the input is an instance of |
@epicfaace sorry to bother you with this. When is the next release planned ? |
@oterral Likely next week. For now, you could just do |
Description
When we use the From component in a wrapper component and pass formData via props., the Form component transforms Props to State in
componentWillReceiveProps
. Problem is when we use a custom widget with an input file, theFile
object is transformed to a basic object in mergeObjects function because theFile
object is detected as an object.I guess the solution is to exclude File from isObject function.
Do you think it's the way to go? I don't see any exception than
File
object which could be bad detected.Steps to Reproduce
Expected behavior
The File object stays a File object
Actual behavior
The File object becomes a basic js object
Version
1.3.0
The text was updated successfully, but these errors were encountered: