diff --git a/src/container/property-list/property-list.tsx b/src/container/property-list/property-list.tsx index c69f56df2..835cf6a89 100644 --- a/src/container/property-list/property-list.tsx +++ b/src/container/property-list/property-list.tsx @@ -32,7 +32,8 @@ interface PropertyViewContainerProps { @MobxReact.observer class PropertyViewContainer extends React.Component { private handleCheckboxChange(e: React.ChangeEvent): void { - console.log(e); + const target = e.target as HTMLInputElement; + this.props.property.setValue(target.checked); } private handleInputChange(e: React.ChangeEvent): void { @@ -68,10 +69,11 @@ class PropertyViewContainer extends React.Component ); } case P.Boolean: { + const value = property.getValue() as boolean; return ( this.handleCheckboxChange(e)} /> );