From f69cba7db2b820ef3abe1ebcdfab7a70db5822a0 Mon Sep 17 00:00:00 2001 From: Wouter Willems Date: Fri, 9 Aug 2024 17:16:01 +0200 Subject: [PATCH] revert emitEvent false --- projects/klippa/ngx-enhancy-forms/package.json | 2 +- .../ngx-enhancy-forms/src/lib/form/form.component.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/klippa/ngx-enhancy-forms/package.json b/projects/klippa/ngx-enhancy-forms/package.json index 33f1723..17c9f1e 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.16", + "version": "14.22.17", "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 5dce5be..49be4dd 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 @@ -67,9 +67,9 @@ export class FormComponent implements OnInit, OnDestroy, OnChanges { } const valueBeforeInject = injectInto.at(injectAt)?.value; if (isValueSet(valueBeforeInject)) { - this.formGroup.patchValue(valueBeforeInject, { emitEvent: false }); + this.formGroup.patchValue(valueBeforeInject); } - injectInto.setControl(injectAt, this.formGroup, {emitEvent: false}); + injectInto.setControl(injectAt, this.formGroup); this.onInjected.emit(valueBeforeInject); } else if (injectInto instanceof UntypedFormGroup) { if (typeof injectAt !== 'string') { @@ -80,9 +80,9 @@ export class FormComponent implements OnInit, OnDestroy, OnChanges { } const valueBeforeInject = injectInto.get(injectAt)?.value; if (isValueSet(valueBeforeInject)) { - this.formGroup.patchValue(valueBeforeInject, {emitEvent: false}); + this.formGroup.patchValue(valueBeforeInject); } - injectInto.setControl(injectAt, this.formGroup, {emitEvent: false}); + injectInto.setControl(injectAt, this.formGroup); this.onInjected.emit(valueBeforeInject); } }