I am encountering a very strange error in my React application. I have this code:
<input
accept="image/*"
onChange={doUpload}
type="file"
name="fileUploader"
id="photoUploader"
ref={fileRef}
/>
but when I click the input to select a file, I don't get the file explorer at all. I also noticed that some of my form's onSumit did not fire until I added an onClick handler to the submit button.
this.before doUpload