Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Inside a <Form> onClick={onImageUpload} doesn't work #153

Open
JuanHeis opened this issue Dec 16, 2022 · 1 comment
Open

Inside a <Form> onClick={onImageUpload} doesn't work #153

JuanHeis opened this issue Dec 16, 2022 · 1 comment

Comments

@JuanHeis
Copy link

If you put the
inside in a Form tag. Images cannot loaded if you click in the button.
Drag and drop works fine

@Happy-Child
Copy link

Always attach your code. Why is there a click event on the form?

Call preventDefault on submit form event, before calling onImageUpload.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants