fix setting custom power levels
This commit is contained in:
parent
79eb54058f
commit
1abd7f45ce
1 changed files with 4 additions and 2 deletions
|
@ -45,8 +45,10 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onSelectChange: function(event) {
|
onSelectChange: function(event) {
|
||||||
this.state.custom = (event.target.value === "Custom");
|
this.setState({ custom: event.target.value === "Custom" });
|
||||||
|
if (event.target.value !== "Custom") {
|
||||||
this.props.onChange(this.getValue());
|
this.props.onChange(this.getValue());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onCustomBlur: function(event) {
|
onCustomBlur: function(event) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue