Skip to content

Commit

Permalink
fix(ng-form): Fix ng form init bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cmckni3 committed Jul 30, 2020
1 parent 9ae848f commit 1382bb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/ui-switch/ui-switch.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ export class UiSwitchComponent implements ControlValueAccessor, OnDestroy {
if (obj !== this.checked) {
this.checked = !!obj;
}

this.onChangeCallback(this.checked);
if (this.cdr) {
this.cdr.markForCheck();
}
Expand Down

0 comments on commit 1382bb1

Please sign in to comment.