react-reactive-form icon indicating copy to clipboard operation
react-reactive-form copied to clipboard

Form status undefined for asyncValidator results

Open cyberwombat opened this issue 5 years ago • 0 comments

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

cyberwombat avatar Jun 25 '19 17:06 cyberwombat