From 4d51888d73142e868a13730ce938ffa6db2cc82c Mon Sep 17 00:00:00 2001 From: Chris McKnight Date: Fri, 1 Nov 2024 15:57:49 -0500 Subject: [PATCH] fix(ng-form): Remove manual onchange cb call Revert "fix(ng-form): Fix ng form init bug" This reverts commit 1382bb140422c5efca4df9d6e15030da3535c2e2. - Not sure why the change was made - The change does not make sense due to how Angular forms operate References #493 --- src/lib/ui-switch/ui-switch.component.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/ui-switch/ui-switch.component.ts b/src/lib/ui-switch/ui-switch.component.ts index 88a89ab4..d722ad1c 100644 --- a/src/lib/ui-switch/ui-switch.component.ts +++ b/src/lib/ui-switch/ui-switch.component.ts @@ -179,8 +179,6 @@ export class UiSwitchComponent implements ControlValueAccessor, OnDestroy { if (obj !== this.checked) { this.checked = !!obj; } - - this.onChangeCallback(this.checked); if (this.cdr) { this.cdr.markForCheck(); }