felixrieseberg / felixrieseberg/React-Dropzone-Component
Remove `alert` when cancelling an upload
- Dominant language
- JavaScript
- Stars
- 999
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
I do not see any event that I can override to remove the alert window from popping up.
```javascript
const init = dropzone => {
dropzoneComponent = dropzone;
dropzoneComponent.confirm = function (question, accepted, rejected) {
console.log('...') // never runs
if (window.confirm(question)) {
return accepted();
} else if (rejected != null) {
return rejected();
}
};
return dropzoneComponent;
};
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named. Start by tracing the upload-cancellation path and how it invokes the confirmation behavior shown in the issue, then determine why the custom confirm function is never reached. Done means cancelling an upload no longer opens the unwanted alert while the intended confirmation behavior remains available.
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