Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The javascript fails with recursion error message #76

Open
satrun77 opened this issue Apr 24, 2017 · 0 comments
Open

The javascript fails with recursion error message #76

satrun77 opened this issue Apr 24, 2017 · 0 comments

Comments

@satrun77
Copy link

The javascript fails with recursion calls to add, error, & remove functions of the dropzone JS. In the end, it stops with the following error. “Uncaught RangeError: Maximum call stack size exceeded”.

To replicate:

  • Create field with the option multiple set to false.
  • Drag and drop multiple files.
  • After few sections, you will see the error message in Chrome console.

If you register a callback on the events (addedfile, removedfile, & error) you will see these are called repeatedly.

The issue is within these lines: https://github.com/unclecheese/silverstripe-dropzone/blob/master/javascript/file_attachment_field.js#L76-L81
The event called for each of the rejected files but also adds the rejected file back to the dropzone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant