Fix issue with checkbox component

This commit is contained in:
Sipke Schoorstra 2023-03-24 11:12:10 +01:00
parent b76442859b
commit a8a05bcf4d

View file

@ -19,7 +19,7 @@ export class Checkbox {
private getSelectedValue = (): boolean => {
const input = getInputPropertyValue(this.inputContext);
const value = (input?.expression as LiteralExpression)?.value;
return value?.toLowerCase() === 'true';
return typeof value == "boolean" ? value : typeof value == "string" ? value?.toLowerCase() === 'true' : false;
};
render() {