mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +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() {
|
handleCheckboxToggle() {
|
||||||
this.setExpanded(!this.state.expanded);
|
this.setExpanded(!this.state.expanded);
|
||||||
|
this.setState({
|
||||||
|
value: this.state.initialValue
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
renderChildren(style) {
|
renderChildren(style) {
|
||||||
|
Loading…
Reference in New Issue
Block a user