Vee-validate: The confirmed rule depends on the order of filling out fields

Created on 2 Dec 2018  路  2Comments  路  Source: logaretm/vee-validate

Versions

  • vee-validate: 2.1.3
  • vue: 2.5.17

Describe the bug
The confirmed validation rule depends on the order of filling out fields when using ValidationProvider (I did not noticed it before making the change to using ValidationProvider).

To reproduce
Have 2 ValidationProviders, the first has the confirmed rule.
Now when filling the first field and then the second field, the first field is marked with a "fields do not match" error.
When filling the second field first it does work like expected.

Expected behavior
The confrimed rule should work no matter the order of filling out the fields.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: chrome

    • Version 70.0.3538.110

馃悰 bug

Most helpful comment

Sorry for the late response.

The docs used an incorrect name for the field and the errors.first method. Now it should be working correctly.

I have identified the issue that prevented a provider from watching its targets, should be up with the next release.

All 2 comments

Yes, this also appears to not work at all on the current example page:

https://baianat.github.io/vee-validate/guide/rules.html#confirmed

Sorry for the late response.

The docs used an incorrect name for the field and the errors.first method. Now it should be working correctly.

I have identified the issue that prevented a provider from watching its targets, should be up with the next release.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HunterJS-bit picture HunterJS-bit  路  3Comments

Hoagiex picture Hoagiex  路  3Comments

Shchepotin picture Shchepotin  路  3Comments

7immer picture 7immer  路  3Comments

yyyuuu777 picture yyyuuu777  路  3Comments