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

dictDefaultMessage is shown even when dropzone is not empty after displaying existing files #2278

Open
3bood-kr opened this issue Dec 9, 2023 · 0 comments

Comments

@3bood-kr
Copy link

3bood-kr commented Dec 9, 2023

So I'm using Laravel, and the problem is when I preload files from the session (old values when validation fails) using displayExistingFile, the number of files length doesn't get updated and stays at zero. This leads to whenever I have more than one preloaded file, and I remove one of them, the dz-started class gets removed from Dropzone and leads to showing the dictDefaultMessage even though Dropzone is not empty!
Here is an example:

ezgif com-video-to-gif

I managed to partially fix this by updating this.files.length manually but still having some issues. Am I missing anything?

Browser / OS:

  • OS: windows 10
  • Browser: Firefox Developer Edition
  • Version 5.9.3
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