You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm trying to validate a number-field, and to make sure it only contains a number (the default validator accepts things like "42haha". i did something like this:
i'd just like to make sure i am using something i am supposed to use, and not some internal detail that can change with the next version.
alternatively, if there is a simpler way to achieve stricter number-validation, or a simpler way to get the originalValue in the test, please tell me.
The text was updated successfully, but these errors were encountered:
i'm trying to validate a number-field, and to make sure it only contains a number (the default validator accepts things like "42haha". i did something like this:
the question is, is the
this.options.originalValue
guaranteed to be there? i could not find anything about it in the documentation.the
this.options
field only says:the options object that validate() or isValid() was called with
validate
says:so no info about the
originalValue
thing.i'd just like to make sure i am using something i am supposed to use, and not some internal detail that can change with the next version.
alternatively, if there is a simpler way to achieve stricter number-validation, or a simpler way to get the
originalValue
in thetest
, please tell me.The text was updated successfully, but these errors were encountered: