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

Remove file link resets entire form #143

Open
mindpixel-labs opened this issue Mar 10, 2020 · 1 comment
Open

Remove file link resets entire form #143

mindpixel-labs opened this issue Mar 10, 2020 · 1 comment

Comments

@mindpixel-labs
Copy link

mindpixel-labs commented Mar 10, 2020

On Angular 9.0.4 with ngx-dropzone-wrapper 9.0.0, if you click a remove file link in the preview container when having your form bound with the directive, all form fields and inputs are reset and cleared.

I have autoProcessQueue: false set in my config.

I noticed this happens when any input in the form has a formControlName directive on it. If it is removed, the inputs will not be cleared when a file is removed.

Can this behavior be prevented? This appears to be a bug.

@sconix
Copy link
Contributor

sconix commented Apr 14, 2020

I am fairly certain that its not a bug in this library.

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

2 participants