Repository navigation
Number field validation message - #1043
Open
robindevitt wants to merge 1 commit into
Open
robindevitt wants to merge 1 commit into
robindevitt wants to merge 1 commit into
Conversation
`%d` is a standard integer representation. It renders "1.5" as "1". As the validation message is only shown as a string we could show the value in the string with `%s` to render it as a string. I tested using `%f` as a floating point however the decimal value is longer than what the user will have chose. IE - 1.500000 Using `%s` seems the best solution to account for what ever value the user could have input into the number field.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue #1018
%dis a standard integer representation. It renders "1.5" as "1". As the validation message is only shown as a string we could show the value in the string with%sto render it as a string.I tested using
%fas a floating point however the decimal value is longer than what the user will have chose. IE - 1.500000Using
%sseems the best solution to account for what ever value the user could have input into the number field.Screenshot showing the correct message with the decimal value as the input was setup.
