fix setting custom power levels
parent
79eb54058f
commit
1abd7f45ce
|
@ -45,8 +45,10 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
onSelectChange: function(event) {
|
||||
this.state.custom = (event.target.value === "Custom");
|
||||
this.props.onChange(this.getValue());
|
||||
this.setState({ custom: event.target.value === "Custom" });
|
||||
if (event.target.value !== "Custom") {
|
||||
this.props.onChange(this.getValue());
|
||||
}
|
||||
},
|
||||
|
||||
onCustomBlur: function(event) {
|
||||
|
|
Loading…
Reference in New Issue