wubocong / react-upload-file

react upload component
MIT License
28 stars 25 forks source link

Issues when multiple ReactUploadFile are on the page #4

Open nikolayg opened 7 years ago

nikolayg commented 7 years ago

There's an issue when two ReactUploadFile components are placed on a page.

The upload events of the second are handed by the callbacks of the first.

I assume, the component searches the DOM globally for an element and always finds the first one ...

Any workaround or fixes?

wubocong commented 7 years ago

@nikolayg thx! I will look up to it.

peter-holcomb-sp commented 7 years ago

Any update on this? I'm also seeing it.

Muzietto commented 7 years ago

+1

harryo commented 6 years ago

Should be addressed by using ref instead of ReactoDOM: https://github.com/wubocong/react-upload-file/pull/9