mantinedev / mantine

A fully featured React components library
https://mantine.dev
MIT License
25.27k stars 1.8k forks source link

Dynamic step changes while dragging Slider and RangeSlider #496

Closed aaronzomback closed 2 years ago

aaronzomback commented 2 years ago

When implementing a conditional in the step prop on Slider, i.e.

step={investmentValue >= 1000 ? 100 : 10}

The step changes only using the keyboard arrows, but not with mouse drag on slider.

rtivital commented 2 years ago

Thanks for leaving a feature request, I'll be working on it in one of the releases after 3.5, leaving it for community now, so feel free to contribute it if "Help wanted" label is still on this issue