Skip to content

Commit

Permalink
StepMismatch comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetDealer committed Apr 19, 2024
1 parent edcd9a2 commit f89cc3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/TextInput/TextInputValidityState.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ export default class TextInputValidityState {
* So we are using attribute 'number-type="integer"'
* The aim is to widen this validation range. Now, the comparison for an integer works correctly when a number
* has no more than 16 digits. However, if a number has 17 digits or more, this function returns incorrect result.
*
* We use StepMismatch property because internal validation writes this error to this property
* StepMismatch property of a ValidityState object indicates if the value of an <input>, after having been edited
* by the user, does not conform to the constraints set by the element's step attribute.
*
* @return {{stepMismatch: boolean}}
*/
#isStepConstraintViolated() {
Expand Down

0 comments on commit f89cc3f

Please sign in to comment.