Bug with slider

Hi!

I have discovered a bug with slider. The setup is the same as in the showroom (value and second value are App variables of type integer). If i leave min/max/step value as defaults, without specifying them - slider will work fine. If i specify min/max/step, even the same as defaults (0, 100, 1) - then it won’t work and there will be a JS error in console.



Screenshot 2024-04-28 at 17.33.48

Hello and thank you for reporting this bug to us.

We’ve found out that attempting to drag a slider with min/max/step set to constants (e.g. 1) is unusable, throwing the following error: TypeError: nearest.toFixed is not a function

This does not seem to apply to existing sliders, where one of min/max (potentially step, too) are set to integers, rather than strings. Creating a new slider is the easiest way to reproduce.

A challenge has been registered for this one :slightly_smiling_face:

//Erik