diff options
Diffstat (limited to 'client/src/app/shared/forms/reactive-file.component.ts')
-rw-r--r-- | client/src/app/shared/forms/reactive-file.component.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/reactive-file.component.ts b/client/src/app/shared/forms/reactive-file.component.ts index f5758b643..8d22aa56c 100644 --- a/client/src/app/shared/forms/reactive-file.component.ts +++ b/client/src/app/shared/forms/reactive-file.component.ts | |||
@@ -25,6 +25,7 @@ export class ReactiveFileComponent implements OnInit, ControlValueAccessor { | |||
25 | @Output() fileChanged = new EventEmitter<Blob>() | 25 | @Output() fileChanged = new EventEmitter<Blob>() |
26 | 26 | ||
27 | allowedExtensionsMessage = '' | 27 | allowedExtensionsMessage = '' |
28 | fileInputValue: any | ||
28 | 29 | ||
29 | private file: File | 30 | private file: File |
30 | 31 | ||
@@ -63,6 +64,8 @@ export class ReactiveFileComponent implements OnInit, ControlValueAccessor { | |||
63 | 64 | ||
64 | writeValue (file: any) { | 65 | writeValue (file: any) { |
65 | this.file = file | 66 | this.file = file |
67 | |||
68 | if (!this.file) this.fileInputValue = null | ||
66 | } | 69 | } |
67 | 70 | ||
68 | registerOnChange (fn: (_: any) => void) { | 71 | registerOnChange (fn: (_: any) => void) { |