fix(gcds-input): stepMismatch errors with decimal numbers#1271
Open
ethanWallace wants to merge 2 commits into
Open
fix(gcds-input): stepMismatch errors with decimal numbers#1271ethanWallace wants to merge 2 commits into
ethanWallace wants to merge 2 commits into
Conversation
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.
📝 Summary | Résumé
As mentioned in #1267, when assigning a
minwith a decimal value like1.5, entering a number of2would produce astepMismatcherror without proper numbers (NaN). This was caused by the step not being defined when creating thestepMismatcherror so the error message would produce twoNaNs. Logic has also been added to present the appropriate number when expecting decimal numbers as valid values.🧩 Related Issues | Cartes liées
🧪 Test instructions | Instructions pour tester la modification
TODO: Replace the instructions below as needed. Describe any steps needed to verify the change(s) work as expected.
mainbranchindex.htmltest file<body>:1into the input and remove focus.minerror message.4into the input and remove focusstepMismatcherror returns withNaNin place of the expected lower and higher valuesindex.htmltest file1into the input and remove focus.minerror message.4into the input and remove focusstepMismatcherror returns with3.5and4.5as the lower and higher acceptable values✍️ Author checklist | Liste de vérification de l'auteur
Choose one:
fix:)feat:)feat!:)chore:,docs:,ci:)Breaking changes flag:
Ready for review: (all items must be checked)
🧐 Reviewer checklist | Liste de vérification du réviseur
Developer checklist
For PRs that are complex, in lieu of a simple approval or an "LGTM" ✅, paste the following info with your approval: