question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Error reactivity with validateAll (and validate?)

See original GitHub issue

I upgraded from 2.1.0-beta.2 to 2.1.0-beta.4.

My setup before was: I have inject: false on my config, and each of my page-level forms use a Formable mixin which request a new validator instance (or a new validator scope now). I have a generic Form component which has some standard saving functionality used across the site. So, all of my page-level forms use the Form component. The Form components injects the validator scope from the page-level parent.

Since the update, upon running validateAll on the form, errors no longer appear under the inputs (when they’re using errors.first(field, scope)), even though the error bag has errors.

I tested and it seems like this.errors may be having some reactivity problems, as setting a watcher on errors fired for changes in beta.2 but not beta.4. Don’t know if that’s actually the problem or if my setup is invalid for the newest version.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
logaretmcommented, Jun 28, 2018

OK, I reverted a change that might have broken the reactivity, tagged a beta.5 release since I’m going off for the next week.

0reactions
Dylan-Chapmancommented, Jun 27, 2018

Updated the title for visibility in case anybody else ran into this

Read more comments on GitHub >

github_iconTop Results From Across the Web

this.$validator.validateAll() returns wrong validations. #2174
Versions vee-validate: 2.2.12 vue: 2.6.6 Describe the bug When a v-validate field is focussed in and out, the error message displayed is ...
Read more >
React-Native Form Validation error ("this.validate is not a ...
Try constructor(props) { super(props); this.state = {name : "My name", email: "tibtib@gmail.com", number:"56", date: "2017-03-01"}; this.
Read more >
React form validation solutions: An ultimate roundup
This roundup is a comprehensive look at some of the most popular solutions for form management and validation in React.
Read more >
Angular Reactive Forms: trigger validation on submit
In this article we will learn different approaches of validating all form fields when user clicks on submit button for Angular Reactive ......
Read more >
Validate all editor and show error message if form has any ...
Can you suggest me 1 solution to resolve this problem! I need to urgent helper. Thanks you very much! Reply.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found