I defined a required paper-textarea element with auto validation and an error message this way:
<paper-textarea auto-validate error-message="Please enter a message" label="Message" required></paper-textarea>
When the element is rendered, it displays the error message by default even before the element is clicked on and gets focus. I've defined paper-input elements in a similar way and the error message is only displayed after the elements are clicked on and get focus, so by default their error message is hidden when they're rendered. For example:
<paper-input auto-validate error-message="Please enter a name" label="Name" required></paper-input>
I had to write some code in Dart to add the auto-validate property to the paper-textarea element only after it is clicked on. Is there a way to prevent this without any Dart code? In order to be consistent, paper-textarea should only display the error message after the element is clicked on just like paper-input. I don't know whether this is intentional or a bug.
I defined a required
paper-textarea
element with auto validation and an error message this way:When the element is rendered, it displays the error message by default even before the element is clicked on and gets focus. I've defined
paper-input
elements in a similar way and the error message is only displayed after the elements are clicked on and get focus, so by default their error message is hidden when they're rendered. For example:I had to write some code in Dart to add the
auto-validate
property to thepaper-textarea
element only after it is clicked on. Is there a way to prevent this without any Dart code? In order to be consistent,paper-textarea
should only display the error message after the element is clicked on just likepaper-input
. I don't know whether this is intentional or a bug.