Skip to content
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

Update react-dropzone dependency #814

Merged
merged 2 commits into from
Dec 15, 2020

Conversation

vharny
Copy link
Contributor

@vharny vharny commented Nov 27, 2020

Fixes #796

Description
I've updated the react-dropzone dependency for the FileInput component.
The update had an impact on the component so I did a little refacto.

Question
I have a question about the ...otherProps, are they really necessary ? And if so, what are they used for in the case of this component?

@arnaudforaison
Copy link
Contributor

Good job. I think otherProps is necessary but I'll be review when this component will be migrated to TS.
Why do you think isn't necessary ?

@vharny
Copy link
Contributor Author

vharny commented Dec 1, 2020

Good job. I think otherProps is necessary but I'll be review when this component will be migrated to TS.
Why do you think isn't necessary ?

Because I don't see what kind of others props can be passed for an input file ?
I think everything is already there to use correctly this component.

@arnaudforaison
Copy link
Contributor

Others props can be all html input attributes as aria, id, ...
Depends on dev needed

johnmeunier
johnmeunier previously approved these changes Dec 7, 2020
Copy link
Contributor

@arnaudforaison arnaudforaison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le onChange ne sort pas les erreurs au même format. Mais c'est mieux maintenant.
Vu avec @LunarzFR , il manque le preview dans le onChange

@sonarqubecloud
Copy link

@vharny
Copy link
Contributor Author

vharny commented Dec 10, 2020

Le onChange ne sort pas les erreurs au même format. Mais c'est mieux maintenant.
Vu avec @LunarzFR , il manque le preview dans le onChange

J'ai push ma modif avec le preview dans le onChange :)

@arnaudforaison arnaudforaison merged commit a16751f into master Dec 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the feature/update-react-dropzone branch December 15, 2020 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade react-dropzone
3 participants