Skip to content

🐛 fix(Validators): BalValidators seem not to follow the Angular standard #60

@hirsch88

Description

@hirsch88

Current Behavior

Hi guys,

it seems like the BalValidators don't follow the Angular standard because the return of the ValidatorFunction needs to be {[key: string]: boolean} | null (ValidationErrors | null) and they only return a boolean. I don't know if I don't use them correctly?

Expected Behavior

Validation needs to work

Steps to Reproduce

  1. Register a form-control in a form with BalValidators attached
  2. Set the form control to an invalid state
  3. Check the valid property of the containing formGroup

Version

13.0.0

Browsers

Firefox, Chrome, Safari, Microsoft Edge

Device

Desktop

Code Reproduction URL

No response

Additional Information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions