Open jtrs opened 8 years ago
Looks like a pretty frustrating bug when using custom validators.
The validator
property on the input element doesn't get bound to the nested input element. A workaround involves reaching in and binding it together.
this.$['paper-textarea-instance'].$['input'].validator = this.$['paper-textarea-instance'].validator;
I also ran into this. Is this by design or an oversight? The documentation specifically states:
Validation
Currently only
required
andmaxlength
validation is supported.-- Yvonne Yip, May 25, 2015
I see that @jtrs tried to fix this themselves but the PR #450 failed CLA and the interest was dropped.
Still running into this.
Description
The paper-textarea element not call the validator function like a paper-input element.
Expected outcome
Validator function for paper-textarea should be called.
Actual outcome
Validator function for paper-textarea don't call.
Live Demo
https://plnkr.co/edit/VtKvhY?p=preview
Steps to reproduce
Browsers Affected