Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

values as strings brakes input[type='number'] #64

Open
CosticaPuntaru opened this issue Aug 19, 2014 · 1 comment
Open

values as strings brakes input[type='number'] #64

CosticaPuntaru opened this issue Aug 19, 2014 · 1 comment

Comments

@CosticaPuntaru
Copy link

from what i can tell the slider sets the model value as string not as number, this breaks ngModel for input[type='number']
example:

<label for="min_price">Min: <input type="number" step="50" min="0" name="min_price" id="min_price" ng-model="min_price"></label>
<label for="max_price">Max: <input type="number" step="50" min="0" name="max_price" id="max_price" ng-model="max_price"></label>
<slider floor="0" ceiling="2000" step="50" ng-model-low="min_price" ng-model-high="max_price"></slider>

in the prev example the inputs appear as blank and dose not work at all

@CosticaPuntaru
Copy link
Author

changing the line 194 to scope[ref] = parseFloat newValue fixes tjhe issue (from what i can tell)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant