Vulcan icon indicating copy to clipboard operation
Vulcan copied to clipboard

Upload Component doesn't work with branch devel version

Open enzolutions opened this issue 6 years ago • 4 comments

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 avatar Mar 26 '19 01:03 enzolutions

@enzolutions The latest devel branch (commit c7ab737cdc1f419950bd7eaab89ad4941e57cf6f) doesn't have this bug.

time4Wiley avatar Feb 17 '20 17:02 time4Wiley

@eric-burel We can close this one.

time4Wiley avatar Feb 17 '20 17:02 time4Wiley

Hey @eric-burel can I work on this issue?

GAURAV1-ui avatar Jul 21 '22 00:07 GAURAV1-ui