Skip to content

Commit

Permalink
revert emitEvent false
Browse files Browse the repository at this point in the history
  • Loading branch information
wouter-willems committed Aug 9, 2024
1 parent e8b8f40 commit f69cba7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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.16",
"version": "14.22.17",
"publishConfig": {
"access": "public"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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);
}
}
Expand Down

0 comments on commit f69cba7

Please sign in to comment.