Upload Component doesn't work with branch devel version
Hello folks.
Today I was working in an example I did before I started to use the Two-Repo Install, before was working, but using the branch devel current version, the upload form stopped working.
In order to enable again, I have to edit the file vulcan-forms-upload/lib/Upload.jsx and remove the following lines
@@ -323,8 +323,8 @@ class Upload extends PureComponent {
styles = isDragActive ? {...styles, ...activeStyle} : styles;
styles = isDragReject ? {...styles, ...rejectStyle} : styles;
return (
- <div {...getRootProps()} style={styles}>
- <input {...getInputProps()} />
+ <div style={styles}>
+ <input />
<div>
<FormattedMessage id="upload.prompt" />
</div>
(END)
Because React reported that getRootProps and getInputProps are not valid functions.
If anyone can give me instructions about how to fix, I could try to fix
@enzolutions The latest devel branch (commit c7ab737cdc1f419950bd7eaab89ad4941e57cf6f) doesn't have this bug.
@eric-burel We can close this one.
Hey @eric-burel can I work on this issue?