-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
stripped-min-length Validation via UI Component Fails with "special" characters #9920
Comments
@bap14 thank you for your report. |
@veloraven I installed Magento CE 2.1.7 and added my custom module and confirmed this does occur in the CE release as well. I would prefer to keep this in the public domain in case there are other developers running into this same issue. I can report it in both if necessary. I'll update the initial posting to include the CE edition as well. |
I didn't specify this earlier, but I was working in the admin area, not the frontend. |
@bap14, thank you for your report. |
That's fantastic news!! Thank you! |
Hi @bap14. Thank you for your report. The fix will be available with the upcoming patch release. |
When using a UI Component and adding the "stripped-min-length" validation as a rule to an input component, if the user inputs a "special" character (e.g. /, &, etc.) a javascript error is thrown.
Preconditions
Steps to reproduce
Create a UI Component based form
Add the following validation to the XML form element definition
Test in admin using value
a/b
orab/
ora&c
Expected result
Actual result
The text was updated successfully, but these errors were encountered: