sarink / react-file-drop

React component for Gmail or Facebook -like drag and drop file uploader

Home Page:https://www.sarink.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support onClick

deslee opened this issue · comments

This is just a nice to have, but it would be great if we can passthough an onClick callback (and perhaps other common react props) to the inner

node.

Can't you just add a wrapper div? The event will bubble up to it.

I have considered spreading all "other" props onto the top-level element, but haven't come up with any legitimate use cases that deem it necessary. Open to discussion though!