Crazy Behavior on Stepper component


#1

Hi guys. I’m having a crazy behavior when I use the stepper component and the “step” is set to “.1”

When I click the buttons, sometimes the value increase and decrease correctly. But sometimes it applies some decimal places.

It does not follow a pattern. Sometimes is on even values, sometimes on odd values…

Here’s a gif to reproduce the situation:

fw7_stepper_bug

Any ideas? Using FW7 4.4.0


#2

Был пост на эту тему, там Владимир объяснил в чем дело,


#3

Use formatValue method in stepper parameter where you need to do required rounding
https://0.30000000000000004.com/