-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
I've been using the range slider for a while, but I just found out that the step attribute is not working as expected.
I'm using the following HTML:
<div
range-slider
min="0"
max="10"
step="0.01"
orientation="horizontal"
decimal-steps="2"
model-min="data.constructies.perimeter.min"
model-max="data.constructies.perimeter.max"
>
</div>
<div class="row">
<div class="col-md-5">
<input type="number" ng-model="data.constructies.perimeter.min" class="form-control" step="0.01">
</div>
<div class="col-md-2 text-center">
-
</div>
<div class="col-md-5">
<input type="number" ng-model="data.constructies.perimeter.max" class="form-control" step="0.01">
</div>
</div>
As you can see, the model is being used in the slider as well as in an number input. Both the slider and the input have the step attribute set to 0.01, but when using the slider, the steps are always 1, eventhough it's being set to 0.01. The step size of 0.01 does work in the number input, so the problem is not being cause by the input doing some wierd stuff with the data.
How can it be that this doesn't work?
Metadata
Metadata
Assignees
Labels
No labels