Skip to content

Form status undefined for asyncValidator results #43

@cyberwombat

Description

@cyberwombat

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions