0

I try to implement input range in my react app. But can`t find way how to trigger function when drag is over. Implementation must work on Chrome.

      <input
        className="slider"
        onChange={this.handleMinProbabilitySlideChange}
        onMouseUp={this.handleDragEnd} // not working
        onBlur={this.handleDragEnd}    // not working
        value={minProbability}
        type="range"
        min="0"
        max="100"
        step="1"
      />
Edgaras Karka
  • 7,400
  • 15
  • 61
  • 115
  • 2
    Why do you need a separate handler for 'drag over' event? `onChange` should be enough to handle changes. – UjinT34 Nov 24 '18 at 09:45
  • because by value I create request to server, and I don`t want to do it every time when value is change, just when drag is end – Edgaras Karka Nov 24 '18 at 09:53
  • Check https://stackoverflow.com/questions/18544890/onchange-event-on-input-type-range-is-not-triggering-in-firefox-while-dragging – UjinT34 Nov 24 '18 at 10:02

0 Answers0