-
Notifications
You must be signed in to change notification settings - Fork 896
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
[mwc-textfied] Setting custom validity removes the mark up for an error/helper, hence causing the form to jerk #2365
Comments
related to 971 |
Hey @rutwick-alic thanks for submitting! The quick solve might be to set the Then set the
|
Hey @taylor-vann, thanks a lot! Let me try doing this. I will update here accordingly. Here's a quick fix that I did for the time being. I had tried setting the validationMessage to a space earlier, but it will still show as invalid, or highlight in red when you focus out.
|
I am using setCustomValidity to validate an email address onInput. When the page loads, the markup for an error/helper message is there along with the input field. Now when I use setCustomValidity to set the field as valid and set the message as blank, the markup is removed, hence causing the form to jerk.
Any ideas on how to fix this, and whether this is a bug or no?
The text was updated successfully, but these errors were encountered: