iamstevendao / vue-tel-input

International Telephone Input with Vue
https://iamstevendao.com/vue-tel-input/
MIT License
818 stars 342 forks source link

Not able to set aria-invalid on the input-field #449

Open duff92 opened 8 months ago

duff92 commented 8 months ago

It's not possible to set aria-invalid attribute on the input field which would be great when to set when the validation is changing state in the phoneObject.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-invalid

My suggestion would be to handle this internally in the component itself, when the state changes between true / false of phoneObject.valid. Or handle it as a property.