Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
decimalfield should specify step=any #70
To avoid a validation error in chrome when entering decimals, the DecimalField template should specify
What I have done so far is this:
Added this to input.html:
And created a new widget like this:
Not sure why this hasn't been implemented, I just ran into it as well. It's an easy fix, but should definitely be implemented into the field.
Instead of step="any", set it to be based on the number of decimal places. ie. step=".01" for decimal places=2 on the field, etc.