mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01: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:
parent
75fe89a0ff
commit
fb917f1a09
@ -241,6 +241,9 @@ const Property = React.createClass({
|
||||
|
||||
handleCheckboxToggle() {
|
||||
this.setExpanded(!this.state.expanded);
|
||||
this.setState({
|
||||
value: this.state.initialValue
|
||||
});
|
||||
},
|
||||
|
||||
renderChildren(style) {
|
||||
|
Loading…
Reference in New Issue
Block a user