Skip to content
Snippets Groups Projects
Commit b69989ce authored by rhenck's avatar rhenck
Browse files

Initialize boolean to false

For now this is only relevant for checkbox values. Would be better to 
have a layer of abstraction of top. Maybe BooleanInputElement.
parent 511b16df
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ export class CheckboxElement extends InputElement implements FontElement, Surfac
Object.assign(this, initFontElement());
Object.assign(this, initSurfaceElement());
this.value = serializedElement.value as boolean || false; // booleans are always initialized false
this.backgroundColor = 'transparent';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment