question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

data-vv-rules, it's designed to this style?

See original GitHub issue
var getDataAttribute = function getDataAttribute(el, name) {
                    return el.getAttribute('data-vv-' + name);
                };

i have beta.14 version vee-validate in my project, today i try to use beta.15, after update, this is a bug: vee-validate.js:1100 Uncaught (in promise) TypeError: Cannot read property ‘split’ of null

i follow source code and notice that, this plugins use data-rules=“” for beta.14, but in beta.15, use data-vv-rules=“”, not same style for html5 attribute,

so i want to know, is this style designed?, new rule? i have to acknowage, i must do some for this change,

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hootlexcommented, Nov 28, 2016

@logaretm I also tried to update to beta.15 but couldn’t make it to work. After migrating all data-* to data-vv-* I got weird errors about not defined props, so I switched back.

@luqingxuan probably this is a non-backwards compatible change. We should expect this kind of changes while the plugin is still in beta.

1reaction
logaretmcommented, Nov 28, 2016

yep, the docs have not been updated yet because of Vue 1.0 version taking longer than expected, should be updated today, sorry for the confusion.

All the data-* attributes for the plugin has been prefixed with vv to help prevent any conflicts with other packages. so you are going to have to search and replace for the attributes you’ve used. Sorry again about the confusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught Error: [vee-validate] No such validator '1234567' exists
I have made changes from your answer but password validation not working,and i have updated my code in my question.. – Maniraj Murugan....
Read more >
Validate custom UI components · Issue #118 - GitHub
Is it possible to validate custom-made UI form components that wrap regular input elements with their own styles or must you use default ......
Read more >
Trying to assign min value in vee-validate dynamically-Vue.js
:data-vv-rules="`required|alpha|min:${messages. ... same event listener to dynamically created buttons in Vue.js and pass object's value to it as parameter?
Read more >
Jan 2017 - vuejs/vue - Gitter
i figured it out enough that i made a Masonry component though! I can do: <vue-masonry :min-width="200" :horizontal-gutter="20" ...
Read more >
Vee-validate + V-The-Mask - CodePen
<the-mask :masked="masked" mask="######" v-model="zip" v-validate="zip" data-vv-rules="required" :class="{'input': true,'is-danger': errors.has('zip') } ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found