leftstick / angular-number-picker

A directive used for picking number by using up/down button, instead of typing
MIT License
23 stars 11 forks source link

Max is not respected if step multiple can exceed max #9

Closed jdcaballerov closed 8 years ago

jdcaballerov commented 8 years ago

I think the value must be coerced to max if adding a step exceeds max. For instance try the demo as:

                        <h-number change="onChanged()" value="input.num" singular="car" plural="cars" min="1" max="10" step="2"></h-number>

one can notice that the counter can reach 11.

best,

leftstick commented 8 years ago

Thanks for reporting this issue, fixed.