Skip to content

Commit 573d6f3

Browse files
authored
fix: readOnly boolean not showing any value (#243)
1 parent f486a76 commit 573d6f3

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)