felixrieseberg / felixrieseberg/React-Dropzone-Component
trigger file dialog programmatically?
- Dominant language
- JavaScript
- Stars
- 999
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
To trigger another component or element programmatically I can use refbut I got an error of photoUploadDropAreaElement is not a function using below code.
```
triggerUploadDialog(){
this.photoUploadDropAreaElement.click(); // doesn't work?
console.log(this.photoUploadDropAreaElement);
}
render() {
return(
this.photoUploadDropAreaElement = dropArea} />
);
```
http://stackoverflow.com/questions/43295907/trigger-react-dropzone-with-ref-doesnt-work
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue identifies triggerUploadDialog, render, and DropzoneComponent but no repository files or tests. Start by reproducing the ref assignment and click call from the example, then trace the component entry point to determine whether the programmatic dialog trigger is supported. Done means the intended behavior is confirmed and either works reliably or is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100