Skip to content

Commit 0c41298

Browse files
committed
fix: readOnly boolean not showing any value
1 parent 2b31a19 commit 0c41298

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular-sdk-components/src/lib/_components/field/check-box/check-box.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ export class CheckBoxComponent implements OnInit, OnDestroy {
173173

174174
this.caption$ = this.configProps$.caption;
175175
this.helperText = this.configProps$.helperText;
176-
this.trueLabel$ = this.configProps$.trueLabel;
177-
this.falseLabel$ = this.configProps$.falseLabel;
176+
this.trueLabel$ = this.configProps$.trueLabel || 'Yes';
177+
this.falseLabel$ = this.configProps$.falseLabel || 'No';
178178

179179
// timeout and detectChanges to avoid ExpressionChangedAfterItHasBeenCheckedError
180180
setTimeout(() => {

0 commit comments

Comments
 (0)