I am currently working on an app using React and I've encountered a strange problem. I have an input whose type = "file" and an onChange event handler. I am using this to have the user select a photo and upload it to a library. The problem is that when selecting this input button, the file picker window is not opening at all. This same exact function was working in this app previously and then suddenly stopped working. It also works when I move it into another React app and try running it there. Does anybody know what could cause an onchange to stop firing in one React app, while working in another app that is running the same exact code?
Again, the code works when I open it with another React App. I click on the 'Choose a file' button, and my file picker opens up to allow me to choose one as you might expect. However, when I click on this button in the app that I am working on, nothing happens (can't even log to the console).
Via Active questions tagged javascript - Stack Overflow https://ift.tt/jC63uEl
Comments
Post a Comment