Vee-validate: Field updated with Watch

Created on 4 Nov 2016  路  2Comments  路  Source: logaretm/vee-validate

The "Vee-validate" is not updating the error flags, in the fields that are updated by watch.

Jackson

Most helpful comment

It seems that the error bag is updated after the watch function has been called. So inside the watches the error bag represents the previous state.

https://jsfiddle.net/g8p6zfah/

All 2 comments

Can you create a fiddle demonstrating the issue?

On a side note, any changes to the flags are not being picked up properly by Vue due to the fact that its adding/remove properties from objects. a fix is in progress.

It seems that the error bag is updated after the watch function has been called. So inside the watches the error bag represents the previous state.

https://jsfiddle.net/g8p6zfah/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jagasan picture jagasan  路  3Comments

7immer picture 7immer  路  3Comments

Youdaman picture Youdaman  路  3Comments

kidox picture kidox  路  3Comments

YamenSharaf picture YamenSharaf  路  3Comments