[QSlider] Step starts from min instead of inner min, resulting in wrong stepping if using floats #16614
Labels
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
The slider starts at 4$, when clicking anywhere on it, you get steps always ending with .8
What did you expect to happen?
Since
innerMin
is the actual minimum selectable value, the steps should be starting from that instead and be whole numbersReproduction URL
https://codepen.io/Tofandel/pen/NWoymZm?editors=101
How to reproduce?
x.8 $
and it doesn't match with any of the marker label steps3 $
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
Firefox, Chrome, Safari, Microsoft Edge, iOS, Android, Electron
Quasar info output
No response
Relevant log output
No response
Additional context
The issue seems to be coming from this function which uses
min
andmax
instead ofinnerMin
andinnerMax
https://github.com/quasarframework/quasar/blob/dev/ui/src/components/slider/use-slider.js#L236-L250
The text was updated successfully, but these errors were encountered: