I’ve run into this issue several times now, enough to want to report it, but unfortunately the code was too complicated to reduce to a small snippet:
.getValue()
called on a slider element of a form can sometimes return a Number as well as a String. I thought slider values can only be numbers, but getValue()
can return "0"
sometimes, as well as 0
.
This is a problem when trying to compare numbers with the value returned by .getValue()
if that value is a string.
Would it be possible to make getValue()
always return numbers for sliders?