Skip to content

Commit

Permalink
address issue #102: put input validation on "secs" field
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Oct 5, 2018
1 parent 557f18f commit 74d978c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/components/gui/blink1ColorPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ var Blink1ColorPicker = React.createClass({
},
handleChangeSecs: function(event) {
var secs = event.target.value; // FIXME
secs = ( secs < 0 ) ? 0 : (secs>10) ? 10 : secs;
Blink1Service.setCurrentMillis(secs*1000); // doesn't trigger an updateCurrentColor?
this.setState({secs: secs});
},
Expand Down

0 comments on commit 74d978c

Please sign in to comment.