Vuetify: inheritAttrs is false make v-text-field can't use vee-validate

Created on 20 Jul 2017  路  10Comments  路  Source: vuetifyjs/vuetify

Steps to reproduce

Get error in console.

"[Vue warn]: Error in directive validate bind hook: 'Error: [vee-validate] Cannot add a listener for non-existent field undefined.'

Versions


Vue: 2.4.1
Vuetify: 0.4.15
vee-validate: 2.0.0-rc.7

What is expected ?


name or another props (eg: data-vv-name) must be passing to component

What is actually happening ?


inheritAttrs is false, so default behavior was disabled.

Reproduction Link


https://codepen.io/CasperLai/pen/pwMrMg

Most helpful comment

It seems its an issue on my end here with vee-validate because it depended on inherited attributes, I have fixed it in this commit

All 10 comments

Has vee-validate been updated to support Vue 2.4? That functionality (inheritAttrs) is crucial for that component to now have hundreds of custom defined props to account for all of the things you could put on a input(type="text")

It seems its an issue on my end here with vee-validate because it depended on inherited attributes, I have fixed it in this commit

Would this be considered resolved then?

Yes, looks good :)
Thanks @logaretm and @johnleider

Hi, is this fix available for [email protected] ?
because I'm not able to integrate it with [email protected]

Hi @lobosan I think didn't fix.

vee-validate did't release.

you'll need to apply the patch manually until the next release. just download it in the master branch (https://github.com/baianat/vee-validate/tree/master/dist) and override the files in your project folder node_modules/vee-validate/dist

@logaretm Any date planned on the release?

@rafaelramalho19 within a couple of days max, sorry for the delay.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

Was this page helpful?
0 / 5 - 0 ratings