1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 08:37:59 +02:00

Reset the Property value when its checkbox is unselected

The user doesn’t want to apply the property, so it should reset to
whatever it is by default.
This commit is contained in:
Brett Sun 2015-12-16 14:50:39 +01:00
parent 75fe89a0ff
commit fb917f1a09

View File

@ -241,6 +241,9 @@ const Property = React.createClass({
handleCheckboxToggle() {
this.setExpanded(!this.state.expanded);
this.setState({
value: this.state.initialValue
});
},
renderChildren(style) {