zefoy / ngx-dropzone-wrapper

Angular wrapper library for Dropzone
MIT License
174 stars 51 forks source link

Remove file link resets entire form #143

Open mindpixel-labs opened 4 years ago

mindpixel-labs commented 4 years ago

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 commented 4 years ago

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