From 410efda505488c4948a3741609a3b665b65355cc Mon Sep 17 00:00:00 2001 From: Kevin FONTAINE Date: Tue, 17 Jan 2017 14:02:52 +0100 Subject: [PATCH] feat(file-select): Clear file select automatically (#524) --- 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*/ }