From 500c1d76e23217f2e14b0892f6da35d635c8a2da Mon Sep 17 00:00:00 2001 From: Kevin Fontaine Date: Fri, 9 Dec 2016 15:26:18 +0100 Subject: [PATCH] Clear file select auztomatically --- components/file-upload/file-select.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/file-upload/file-select.directive.ts b/components/file-upload/file-select.directive.ts index 4b8325c..3bef0b7 100644 --- a/components/file-upload/file-select.directive.ts +++ b/components/file-upload/file-select.directive.ts @@ -38,7 +38,7 @@ export class FileSelectDirective { this.uploader.addToQueue(files, options, filters); if (this.isEmptyAfterSelection()) { // todo - // this.element.nativeElement.properties.value = ''; + this.element.nativeElement.value = ''; /*this.element.nativeElement .replaceWith(this.element = this.element.nativeElement.clone(true)); // IE fix*/ }