From 0c41298800f0956b1a76a210981300f9236680dc Mon Sep 17 00:00:00 2001 From: Siva Rama Krishna Date: Thu, 5 Dec 2024 13:23:25 +0530 Subject: [PATCH] fix: readOnly boolean not showing any value --- .../lib/_components/field/check-box/check-box.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular-sdk-components/src/lib/_components/field/check-box/check-box.component.ts b/packages/angular-sdk-components/src/lib/_components/field/check-box/check-box.component.ts index 5164f309..b678e846 100644 --- a/packages/angular-sdk-components/src/lib/_components/field/check-box/check-box.component.ts +++ b/packages/angular-sdk-components/src/lib/_components/field/check-box/check-box.component.ts @@ -173,8 +173,8 @@ export class CheckBoxComponent implements OnInit, OnDestroy { this.caption$ = this.configProps$.caption; this.helperText = this.configProps$.helperText; - this.trueLabel$ = this.configProps$.trueLabel; - this.falseLabel$ = this.configProps$.falseLabel; + this.trueLabel$ = this.configProps$.trueLabel || 'Yes'; + this.falseLabel$ = this.configProps$.falseLabel || 'No'; // timeout and detectChanges to avoid ExpressionChangedAfterItHasBeenCheckedError setTimeout(() => {