Skip to content

Commit 206fbdd

Browse files
authored
Merge pull request #148 from netgrif/NAE-1763
[NAE-1763] FileField value is not promoted to the frontend after "set data event"
2 parents 942c201 + 68082e1 commit 206fbdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/netgrif-components-core/src/lib/data-fields/file-field/abstract-file-field.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ export abstract class AbstractFileFieldComponent extends AbstractDataFieldCompon
171171
if (!!this.filePreview
172172
&& !!this.dataField.value
173173
&& !!this.dataField.value.name) {
174+
this.fileForDownload = undefined;
175+
this.fileForPreview = undefined;
174176
this.initializePreviewIfDisplayable();
175177
}
176178
})

0 commit comments

Comments
 (0)