danhunsaker / angular-dynamic-forms

Build Forms in AngularJS From Nothing But JSON (please see Alternatives in the README)
MIT License
379 stars 140 forks source link

Add support for step for any number field #19

Closed kynan closed 10 years ago

kynan commented 10 years ago

For a number field that is representing a floating point number, the step needs to be set to a value smaller than 1 or to "any", otherwise the browser will reject any decimal places.

danhunsaker commented 10 years ago

The usability of steps smaller than 1 is low, in my experience, but it's easy enough not to use the option if you don't need it. This looks fine.