react-excel-renderer icon indicating copy to clipboard operation
react-excel-renderer copied to clipboard

Make renderer run even if the same file was selected

Open gmarshall56 opened this issue 3 years ago • 1 comments

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.

gmarshall56 avatar Aug 09 '21 21:08 gmarshall56

Hello:

Use the attribute "value" in your input in order to "reset" the file value="" "<input type='file' onChange={this.fileHandlerProducts} value=" "/>"

Zadegro avatar Aug 10 '21 00:08 Zadegro