I'm trying to make an onmouseup like event on my slider (input html tag with type=range) in my react render function. I would love to do
<input id="slider" type="range" min="1" max="100" value={this.state.input_val} onChange={this.handleChange} onmouseup={this.handleSubmit} />
But you can't add the onmouseup event. The second thing I tried was adding an addEventListener which also failed probably due to all of react's binding rules.
this.slider.addEventListener('mouseup', e => {
this.handleSubmit()
});
I want an event to go off when the slider is released in my app, all help is very appreciated.