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
Andre Schubert committed Jun 3, 2021
1 parent 75e2d60 commit b313c14
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 b313c14

Please sign in to comment.