Open jrods opened 1 year ago
i have this issue too..
I have tested this issue in my own application - everything seems to be working fine with
onClick={(e) => e.stopPropagation()}
placed on the child component of FileUploader
- the file picker does not show up.
i have this issue too
I bind on MouseDown
event and it worked!
For the ones that onClick={(e) => e.stopPropagation()}
doesn't work, try onClickCapture={(e) => e.stopPropagation()}
.
For more info check this article: event-propagation-event-bubbling-event-catching-beginners-guide..
Currently when there are children with onClick events, clicking on those child elements will cause the FileUploader component to open the file picker. Using
event.stopPropagation()
orevent.stopImmediatePropagation()
in the child onClick event does not stop the event from triggering.Example: