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

Dropzone should use FileWithPath of react-dropzone instead of File #2250

Closed
Meierschlumpf opened this issue Aug 27, 2022 · 1 comment
Closed

Comments

@Meierschlumpf
Copy link
Contributor

What package has an issue

@mantine/dropzone

Describe the bug

The wrong type for the onDrop method is used. It's currently File which does not contain a key for path.
For more infos see here.

What version of @mantine/hooks page do you have in package.json?

5.2.3

If possible, please include a link to a codesandbox with the reproduced problem

No response

Do you know how to fix the issue

Yes

Are you willing to participate in fixing this issue and create a pull request with the fix

Yes

Possible fix

Using FileWithPath type from react-dropzone

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

No branches or pull requests

2 participants