Skip to content

Commit

Permalink
use onchange
Browse files Browse the repository at this point in the history
  • Loading branch information
Pau1fitz committed Jan 31, 2018
1 parent c906712 commit 2689a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VolumeControls/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class VolumeControls extends Component {
return (
<div className='volume-container'>
<i className="fa fa-volume-up" aria-hidden="true"/>
<input className='volume' type="range" min={0} max={100} value={this.state.volume} onInput={this.updateVolume} />
<input className='volume' type="range" min={0} max={100} value={this.state.volume} onChange={this.updateVolume} />
</div>
);
}
Expand Down

0 comments on commit 2689a0e

Please sign in to comment.