Closed stratboy closed 2 years ago
I've just solved: I saved min/max values as arrays, and probably wNumb can't convert them. By saving them as numbers, it works. Still, I don't fully understand a couple of things:
why on docs is often used array as range value, especially for min/max
why wNumb is not recognizing and converting array values when applied to noUISlider (I suggest at least to clearly advise on your docs :) )
What's happening in your case is that wNumb
is stricter than the default format on the slider; the array values you are providing for handles
get cast to string, then handled as numbers without a format set. With a wNumb
format, they get parsed as false
, which ends up as 0
when cast to a Number
.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hi, I'm sure I'm doing domething wrong.. As soon as I add format with wNumb, second handles of two different sliders, both are resetted to zero position. Values inside the sliders are ok, they correctly follow the expected range, but the second handle gets moved on zero position on init. Here's some code:
Ranges:
Without format:
With format:
How to solve?