paper-input-decorator not updating validity as you type
Opened this issue · 1 comments
Andersmholmgren commented
According to the doco it appears that validity should be updated as you type. The following example only updates validity once the field loses focus
<paper-input-decorator id="usernameDec" label="Username"
error="Must enter a username!"
isInvalid="{{!$['username'].validity.valid}}" floatingLabel flex>
<input id="username" is="core-input"
value="{{username}}"
required autofocus>
</paper-input-decorator>
jakemac53 commented
It looks like this is a result of having the "floatingLabel" attribute, if you remove that then it works as intended. Filed a bug on the js repo, googlearchive/paper-input#135.