Vee-validate: Error won't appear with data-vv-scope

Created on 5 Jul 2018  ·  1Comment  ·  Source: logaretm/vee-validate

Versions

  • vee-validate: 2.1.0-beta.5
  • vue: 2.5.16
  • vuetify: 1.1.1

Describe the bug
The error under the field won't show when using data-vv-scope

To Reproduce
Steps to reproduce the behavior:

  1. Type something in a field that has data-vv-scope and it wont fire the message.'
  2. Remove the data-vv-scope and try again. The error will appear.

Expected behavior
Appear the error under the field just like it was in 2.0.9 (try to change the version of vee-validate in the CodePen below and see).

Demo Link
https://codepen.io/luizhenriquerdias/pen/OEYbxR

Desktop (please complete the following information):

  • OS: Windows 10 Pro
  • Browser Chrome
  • Version 67
☔ has workaround ❔ question

Most helpful comment

The 2.1.x betas will require specifying the scope to methods like collect. This previously caused a confusion between fields that do not have scoped and ones that do with the same name.

You can fix it by adding the scope name before the field name: 1.name

https://codepen.io/logaretm/pen/qKGqye

Note that the betas will have plenty of breaking changes since I wanted to address long-standing issues in them.

>All comments

The 2.1.x betas will require specifying the scope to methods like collect. This previously caused a confusion between fields that do not have scoped and ones that do with the same name.

You can fix it by adding the scope name before the field name: 1.name

https://codepen.io/logaretm/pen/qKGqye

Note that the betas will have plenty of breaking changes since I wanted to address long-standing issues in them.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schel4ok picture schel4ok  ·  3Comments

7immer picture 7immer  ·  3Comments

parweb picture parweb  ·  3Comments

Youdaman picture Youdaman  ·  3Comments

MaxMilton picture MaxMilton  ·  3Comments