Skip to content

Add HTML5 validation for float-like field types#3378

Merged
mshibuya merged 4 commits into
railsadminteam:masterfrom
codealchemy:html5-number-fields-patches
Aug 14, 2021
Merged

Add HTML5 validation for float-like field types#3378
mshibuya merged 4 commits into
railsadminteam:masterfrom
codealchemy:html5-number-fields-patches

Conversation

@codealchemy

Copy link
Copy Markdown
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
Copy Markdown
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