Bug when clear input
Closed this issue · 4 comments
anafreitas commented
I think there is a bug when you clear the input. If I remove a file and insert the same file again, the input doesn't accept it. This bug is present in the demo page.
jbonet commented
Very annoying bug. Any workaround?
anafreitas commented
Yes. I discovered that the file input is not being cleaned when you call the clear function, so I did this:
this.fileImage.clear();
this.fileImage._elementRef.nativeElement.children[0].value = null;
jbonet commented
Thanks, it worked like a charm