Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HTML5 validation for float-like field types #3378

Merged

Conversation

codealchemy
Copy link
Contributor

float and decimal fields currently render as text inputs, allowing non-numerical values in the form.

This updates their respective form helper to be the appropriate field type (number), as well as the step html attribute to the most permissive for input validation.

Closes #3289

@mshibuya mshibuya merged commit 2831243 into railsadminteam:master Aug 14, 2021
@mshibuya
Copy link
Member

Excellent, thanks!

@codealchemy codealchemy deleted the html5-number-fields-patches branch August 14, 2021 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing float field HTML5 validation
2 participants