diff --git a/libs/portal-integration-angular/src/lib/core/directives/patch-form-group-values.driective.ts b/libs/portal-integration-angular/src/lib/core/directives/patch-form-group-values.driective.ts index 8d60955c..68ff26ba 100644 --- a/libs/portal-integration-angular/src/lib/core/directives/patch-form-group-values.driective.ts +++ b/libs/portal-integration-angular/src/lib/core/directives/patch-form-group-values.driective.ts @@ -5,9 +5,10 @@ import { Directive, Input } from '@angular/core' }) export class PatchFormGroupValuesDirective { @Input() formGroup: any + @Input() emitEvents = false @Input() set ocxPatchFormGroupValues(val: any) { if (!val) return - this.formGroup.patchValue(val, { emitEvent: false }) + this.formGroup.patchValue(val, { emitEvent: this.emitEvents }) } }