Vee-validate: Vuex validation does not work

Created on 9 May 2018  ·  5Comments  ·  Source: logaretm/vee-validate

Versions

  • vee-validate: 2.0.8
  • vue: 2.5.2
  • vuex: 3.0.1

Describe the bug
When state changed from other source, validation does not triggered.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/3yy80xmnj5
  2. Click on "Validating Vuex State️️"
  3. Click on "Fill" or "Fill2"
  4. See nothing

Expected behavior
After click "Fill" or "Fill2" the message "The message field must be at least 5 characters." must be appeared.

Demo Link
https://codesandbox.io/s/3yy80xmnj5

Additional context
Please help or explain

🐛 bug

Most helpful comment

This is indeed a bug, will take a look at it once I get back from the
mandatory army service in a couple of days.

On Wed, 9 May 2018, 08:48 Vladimir, notifications@github.com wrote:

Versions

  • vee-validate: 2.0.8
  • vue: 2.5.2
  • vuex: 3.0.1

Describe the bug
When state changed from other source, validation does not triggered.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/3yy80xmnj5
  2. Click on "Validating Vuex State️️"
  3. Click on "Fill" or "Fill2"
  4. See nothing

Expected behavior
After click "Fill" or "Fill2" the message "The message field must be at
least 5 characters." must be appeared.

Demo Link
https://codesandbox.io/s/3yy80xmnj5

Additional context
Please help or explain


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/baianat/vee-validate/issues/1310, or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-KSh2fq5Ou7GLXZIp8lstWSOOITrBWks5twpEjgaJpZM4T3y8J
.

All 5 comments

This is indeed a bug, will take a look at it once I get back from the
mandatory army service in a couple of days.

On Wed, 9 May 2018, 08:48 Vladimir, notifications@github.com wrote:

Versions

  • vee-validate: 2.0.8
  • vue: 2.5.2
  • vuex: 3.0.1

Describe the bug
When state changed from other source, validation does not triggered.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/3yy80xmnj5
  2. Click on "Validating Vuex State️️"
  3. Click on "Fill" or "Fill2"
  4. See nothing

Expected behavior
After click "Fill" or "Fill2" the message "The message field must be at
least 5 characters." must be appeared.

Demo Link
https://codesandbox.io/s/3yy80xmnj5

Additional context
Please help or explain


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/baianat/vee-validate/issues/1310, or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-KSh2fq5Ou7GLXZIp8lstWSOOITrBWks5twpEjgaJpZM4T3y8J
.

Thanks, looking forward a fix.

Thanks a lot, when the next release will be?

Very soon, but will probably contain some breaking changes related to confirmed rule, so will be tagged as beta shortly.

Any updates about this? I'm still using the V2.2.11 since I won't be able to migrate the whole app to vee-validate v3.
As the OP described, when v-model is hydrated from vuex, the validation is not triggered

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MeltedFreddo picture MeltedFreddo  ·  3Comments

biapar picture biapar  ·  3Comments

yyyuuu777 picture yyyuuu777  ·  3Comments

Shchepotin picture Shchepotin  ·  3Comments

schel4ok picture schel4ok  ·  3Comments