react-excel-renderer
react-excel-renderer copied to clipboard
Make renderer run even if the same file was selected
Hello:
I have installed this per you sample OnChange handler code. This works great but, what if the user were to select the same file again? When selecting file "a.xlsx" the code runs great, but when selecting file "a.xlsx" again, the code does not run, probably because of the OnChange handler. What would I do to allow your code to run each and every time even if the same file was selected over an over again?
Thank you for your time.
Hello:
Use the attribute "value" in your input in order to "reset" the file value="" "<input type='file' onChange={this.fileHandlerProducts} value=" "/>"