Closed lucasmernin closed 1 year ago
How can I ensure a submission is not trigged while uploading an image on click
<button type="button" className="custom-file-upload" style={isDragging ? { color: 'red' } : undefined} onClick={onImageUpload} {...dragProps}
add type="button" to not trigger submission
How can I ensure a submission is not trigged while uploading an image on click