diff --git a/projects/klippa/ngx-enhancy-forms/package.json b/projects/klippa/ngx-enhancy-forms/package.json index 2589cb8..33f1723 100644 --- a/projects/klippa/ngx-enhancy-forms/package.json +++ b/projects/klippa/ngx-enhancy-forms/package.json @@ -1,6 +1,6 @@ { "name": "@klippa/ngx-enhancy-forms", - "version": "14.22.15", + "version": "14.22.16", "publishConfig": { "access": "public" }, diff --git a/projects/klippa/ngx-enhancy-forms/src/lib/form/form.component.ts b/projects/klippa/ngx-enhancy-forms/src/lib/form/form.component.ts index f1ed78b..5dce5be 100644 --- a/projects/klippa/ngx-enhancy-forms/src/lib/form/form.component.ts +++ b/projects/klippa/ngx-enhancy-forms/src/lib/form/form.component.ts @@ -69,7 +69,7 @@ export class FormComponent implements OnInit, OnDestroy, OnChanges { if (isValueSet(valueBeforeInject)) { this.formGroup.patchValue(valueBeforeInject, { emitEvent: false }); } - injectInto.setControl(injectAt, this.formGroup); + injectInto.setControl(injectAt, this.formGroup, {emitEvent: false}); this.onInjected.emit(valueBeforeInject); } else if (injectInto instanceof UntypedFormGroup) { if (typeof injectAt !== 'string') { @@ -82,7 +82,7 @@ export class FormComponent implements OnInit, OnDestroy, OnChanges { if (isValueSet(valueBeforeInject)) { this.formGroup.patchValue(valueBeforeInject, {emitEvent: false}); } - injectInto.setControl(injectAt, this.formGroup); + injectInto.setControl(injectAt, this.formGroup, {emitEvent: false}); this.onInjected.emit(valueBeforeInject); } }