From 49fc81f383638b3f92dcb6c13fad0f09f42c6903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Fri, 2 Feb 2024 09:58:21 +0300 Subject: [PATCH] Fixed #14693 - Checkbox | Disabled property does not work when it's used with formControlName --- src/app/components/checkbox/checkbox.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/checkbox/checkbox.ts b/src/app/components/checkbox/checkbox.ts index 8ad9309aef4..23948976908 100755 --- a/src/app/components/checkbox/checkbox.ts +++ b/src/app/components/checkbox/checkbox.ts @@ -293,7 +293,9 @@ export class Checkbox implements ControlValueAccessor { } setDisabledState(val: boolean): void { - this.disabled = val; + setTimeout(() => { + this.disabled = val; + }); this.cd.markForCheck(); }