Skip to content

Commit

Permalink
Merge pull request #36 from cloudnc/fix/set-disable-state
Browse files Browse the repository at this point in the history
fix(lib): when calling setDisabledState do not emit event to formGroup
  • Loading branch information
zakhenry authored May 17, 2019
2 parents 40c47cf + 2698d79 commit dc6ff59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ngx-sub-form/src/lib/ngx-sub-form.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ export abstract class NgxSubFormComponent<ControlInterface, FormInterface = Cont
}

if (shouldDisable) {
this.formGroup.disable();
this.formGroup.disable({ emitEvent: false });
} else {
this.formGroup.enable();
this.formGroup.enable({ emitEvent: false });
}
}
}
Expand Down

0 comments on commit dc6ff59

Please sign in to comment.