'v-model' directives aren't supported on <div> elements ??
See original GitHub issueHello guys,
I got this problem right now as described on topic ? What should I config in addition ?
Thx for your help.
Tell us about your environment
- ESLint Version: v4.19.0
- eslint-plugin-vue Version: v4.3.0
- Node Version: v8.10.0
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
What actually happened? Please include the actual, raw output from ESLint.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
'v-model' directives cannot update the iteration variable itself
My solution was very simple (see v-model="tags[index]" ):. Instead of doing this: <template v-for="tag in tags"> <TagView :key="tag.key" ...
Read more >vue/valid-v-model
This rule checks whether every v-model directive is valid. ... E.g. <div v-model="foo"></div>; The directive is on <input> elements which ...
Read more >How To Add v-model Support to Custom Vue.js Components
v -model will work on content editable elements, but you need to explicitly use the content of the element, or the content will...
Read more >Found invalid v-model directives JS-0636 - DeepSource
The directive is on unsupported elements; The directive is on <input> elements which their types are file. The directive's reference is iteration variables....
Read more >'v-model' directives aren't supported on <Input> elements?
Javascript Required. Kindly enable Javascript. · 'v-model' directives aren't supported on <Input> elements? · Updates · Content Removed.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Oh, I thought that
v-modelwas specific to custom components and to some<input>tags.Maybe you can use this?
v-modelis just a syntactic sugar, and shouldn’t be used on elements other than input or textarea. You should instead manually control data flow, like this: