Skip to content

Commit

Permalink
dont emit on setcontrol
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-willems committed Aug 9, 2024
1 parent 667cff4 commit e8b8f40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/klippa/ngx-enhancy-forms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klippa/ngx-enhancy-forms",
"version": "14.22.15",
"version": "14.22.16",
"publishConfig": {
"access": "public"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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);
}
}
Expand Down

0 comments on commit e8b8f40

Please sign in to comment.