felixrieseberg / felixrieseberg/React-Dropzone-Component

Remove `alert` when cancelling an upload

Open
#108 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.