vutoan266 / react-images-uploading

The simple images uploader applied Render Props pattern that allows you to fully control UI component and behaviors.
https://github.com/vutoan266/react-images-uploading
MIT License
320 stars 52 forks source link

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

Open JuanHeis opened 1 year ago

JuanHeis commented 1 year ago

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 commented 1 year ago

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

Call preventDefault on submit form event, before calling onImageUpload.