I'm developing a Vue application. I would like to know if a form field is in an invalid state. For example, if the field is required, and the user hits submit, but they haven't filled out the field, then the browser's validation should trigger and the field shows in red with a validation message under it. That's what I mean by an invalid state.
I can reference the field with $refs as follows:
<v-text-field
ref="myField"
required
v-model="value" />
this.$refs['myField'].what?
Is there anything I can do with $refs['myField'] that will tell me if it's in an invalid state or not?