Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form status undefined for asyncValidator results #43

Open
cyberwombat opened this issue Jun 25, 2019 · 0 comments
Open

Form status undefined for asyncValidator results #43

cyberwombat opened this issue Jun 25, 2019 · 0 comments

Comments

@cyberwombat
Copy link

Describe the bug
I am using the async validator example you provided and added a listener to the form to watch status change. Works fine for sync validators but for async it first provides PENDING as expected but then, whether the validation passes or fail it returns undefined.

To Reproduce
Steps to reproduce the behavior:

  1. Create a form with async validator
  2. Add listener such as myForm.statusChanges.subscribe((value) => {
    console.log(value)

Expected behavior
I would expect VALID or INVALID

Desktop (please complete the following information):

  • Version 1.0.30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants