react-component / slider

React Slider
https://slider.react-component.now.sh/
MIT License
3.02k stars 764 forks source link

Incorrect value displaying on dynamically changing min value to equal to max value #860

Open didolf opened 1 year ago

didolf commented 1 year ago

Steps to reproduce:

  1. Set up min to 1 max to 10
  2. Change value to 5
  3. Change min to 10

Expected: handle positioned on start of rail, track width = 0. Current: handle positioned on center of rail, track width != 0.

Codesandbox to repoduce: https://codesandbox.io/s/jolly-leftpad-p040z6?file=/src/App.js