Property value of dynamically rendered component in designer isnt updating immediately
Closed this issue · 5 comments
raBot1994 commented
Hey @b4rtaz ,
I have a component that I am using in the designers html , which accepts the an @input() property "reset".
When I change the value of this property , it doesnt seem to call the ngOnChanges of my component.
I need to select outside the step of the designer and click on the step again, for the new value to reflect
I'm pretty sure i am missing something. Would appreciate your help.
<ng-template` #stepEditor let-editor>
<h2 class='step-header'>Step {{editor.step.name}}</h2>
<ng-container *ngIf="editor.step.type === 'task'">
<h3>Input parameters</h3>
<ng-container *ngIf="editor.step.properties.input_parameters.length > 0">
<div *ngFor="let element of editor.step.properties.input_parameters;let i = index">
<div *ngIf="element?.inputType==='file'" class="upload-container">
<file-upload
(selectionChange)="onFileUploadUpdate($event,element,editor,i,designer,element.name)"
allowedFileExtensions=".xlsx, .xls, .pdf, .doc"
[resetFile]=resetFile>
</file-upload>
</div>
</div>
</ng-container>
</ng-container>
</h2>
</ng-template>
I am setting the value of resetFile to false initially and then to true later in my ts file.
b4rtaz commented
What version are you using?