Skip to content

Regle validation is immediate unlike Vuelidate which is after submit #67

@mrleblanc101

Description

@mrleblanc101

Not sure if it's a bug, or a documentation issue, but I haven't seen it mentioned inside the Vuelidate migration guide.

Currently, with Vuelidate, the first validation is only done on form submit, then the errors becomes reactive.

Image

  1. Enter value in required field, ok
  2. Erase value in required field, ok
  3. Submit form shows error, ok
  4. Enter value, ok (errors is removed reactively)

But with Vuelidate, the first validation is done as soon as the field become dirty.

Image

  1. Enter value in required field, ok
  2. Erase value in required field, wrong (shows error)
  3. Submit form shows error, ok
  4. Enter value, ok (errors is removed reactively)

I tried the rewardEarly modifier, but that's not exactly the same because if I submit the form with an empty required field, it shows the error as expected, if I fill the field, the error will disapear but it won't reappear if i empty the field again.

Image

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions