-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextField InputMask error #5685
Comments
It looks like this was added in this commit 408229e#diff-d859ac9988451f6935f1f9d93f07a5c4330cccd7a2990b3f823375e1a851271c We use the inputMask property to create input masks for the textfield component as per the InputMask documentation https://robinherbots.github.io/Inputmask/#/documentation Is there any particular reason why the inputMask needs to accept null and an empty string? |
In the old version of Formio, the inputMask was set to null, and we saved forms using this format. After upgrading Formio, we're now encountering errors on all these forms. We use version formiojs - 4.14.12 |
What version of formio.js were you using that had inputMask set to null? |
|
Describe the bug
In old release in the textfield was field inputMask which has value null, but i upgrade the version to the latest and the value of the field changed to empty string. If i dont change from null to "" i got error : TypeError: Cannot read properties of null (reading 'length')
at Object.getInputMask
More in attachment.
Version/Branch
formiojs - 4.21.0
@formio/react - 5.3.0-rc.3
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It can accept null and empty string
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: