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
Currently, {{paper-input}} is in violation of Material Design specification which states that an application should 'show error text only after user interaction with a field'. Right now, the paper input component shows error messages before the user has interacted with it. This can be fixed by adding an isTouched property which gets set on focusOut, and then only displaying error messages if isTouched is true.
The text was updated successfully, but these errors were encountered:
I have a related question: is it possible to reset the input to "untouched" state?
I have a fairly standard functionality — a list of records + a new record form. When the form is submitted I create a new record, refresh the list and bind the form to the new fresh record.
Here's my code:
So the input stays the same, but now it's bound to the new model record, which has a required field initially set to an empty string. It makes it instantly highlighted as having an error because it was already touched before.
Currently,
{{paper-input}}
is in violation of Material Design specification which states that an application should 'show error text only after user interaction with a field'. Right now, the paper input component shows error messages before the user has interacted with it. This can be fixed by adding anisTouched
property which gets set on focusOut, and then only displaying error messages ifisTouched
is true.The text was updated successfully, but these errors were encountered: