wanadev/PhotonUI

Wrongly rounded value when creating a Slider

Closed this issue · 0 comments

var slider = new photonui.Slider({
    value: 0.5,
    min: 0, max: 10,
    step: 0.5,          
    decimalDigits: 2,
});

photonui.domInsert(slider, "demo");

Expected result

A new slider with current value set to 0.5.

Result

A new slider with current value set to 1.0.

Note

Moving the value parameter to the end of the object make it work.