getValue() for slider returns String or Number

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?

Hello,

In fact, getValue() for slider should return Number. So, I can confirm the issue. We will fix it. Thank you for the report!

Was this fixed in 6.0.7?

Hello,
It’s already fixed.
https://snippet.webix.com/bdt97bs4