vuetify: Ability to set error state for text field via parameter
I think rules prop of v-text-field is unnecessary functionality, because in most cases we have to validate our form values not in text fields components.
Just imagine if you need to disable submit button before all you inputs do not have errors. With current v-text-field api you have to run validations twice.
So, I suggest add new boolean prop error to v-text-field. If error is true the field should look like field with error.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (7 by maintainers)
Commits related to this issue
- enhancement for #545 — committed to vuetifyjs/vuetify by johnleider 7 years ago
- enhancement in addition for #545 — committed to vuetifyjs/vuetify by johnleider 7 years ago
I’ve added the ability to manually set the
errorstate and even pass in a string or array of strings for your own customerrors. The errors prop will not trigger component validation.I like errorMessages. I’ll do that tonight.