Skip to content

Commit

Permalink
fix(lib): initially disabled forms gets dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
4typen authored and Andre Schubert committed Jun 3, 2021
1 parent 75e2d60 commit 944d23a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-sub-form/src/lib/ngx-sub-form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export abstract class NgxSubFormComponent<ControlInterface, FormInterface = Cont
this.formGroup.updateValueAndValidity({ emitEvent: false });

if (this.controlDisabled) {
this.formGroup.disable();
this.formGroup.disable({ emitEvent: false });
}
}
}, 0);
Expand Down

0 comments on commit 944d23a

Please sign in to comment.