-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[DragAndDropFileUploader]: "click to upload" not working #4899
Comments
glad someone else had this problem not just me, for now we'll just roll back our carbon upgrade, any idea what version this regressed in? |
Found it, aa46d5d#diff-ce0edbf1b641b96f453e0a6b6277bb31 Variable declared above the drop if statement, so when not dragging and dropping it fails |
Great catch @Georgegriff! |
Hi,
|
@zbeedatm Strange that neither of the approach you described didn't work for you. I imagine your issue can be different from this issue. Would you want to re-create the reduced case, probably incorporating 1. above? |
Sure. I had this sandbox that the browse functionality working on it: I forked the same sandbox, but the browse functionality isn't working despite it still working on same version without upgrade: A new one with the upgrade to 10.9.0: |
At a glance of https://codesandbox.io/s/fragrant-morning-267l5 - What I see are tiles instead of file uploader. Thus I hoped a reduced case is prepared again, or probably an explanation is provided how to get to a file uploader there. |
Oh sorry, just press on the Import Project button |
Thanks. As you know we have a channel for Carbon - Feel free to add more info there! |
Given https://codesandbox.io/s/fragrant-morning-267l5 has |
OK that's fixed it (I still don't know what is the different between "^" and "~" btw, but I'll read about it : ) Are you going to give a new release with a fix for this issue soon or had to wait for next release in a month? If it's not going to be during this weak, we will release our product with 7.7.4 instead of 10.9.0 |
Unless you need a particular feature or fix from newer version of Carbon, I think it'll make sense to stay with an older version, especially if newer version breaks a thing. |
One more question, as I mentioned I tried taking the fix of this issue and inserting it manually to my local version of the FileDropContainer.js into node_modules folder, but when loading the application this fix didn't take effect! Should this hack work? In general I know that it's not a good practice, but I just want to know that the option exists on the table. Basically, from 10.9.0 I need the feature #4516 |
Probably your code is overridden by NPM/Yarn install? I'd suggest maintaining a copy of Carbon code in your source tree instead. |
The drag and drop file uploader isn't fully functional in the react storybook. If you go here, you can drag and drop files to upload but the "click to upload" function doesn't seem to be working.
The text was updated successfully, but these errors were encountered: