Skip to content

Strange field level validation when form level validate function is missing #196

@em-ka

Description

@em-ka

Hi @erikras !

Are you submitting a bug report or a feature request?

Bug report.

What is the current behavior?

Referring to the old example of the conditional fields, I'm experiencing some strange behaviour when updating to the last version of the RFF. I've prepared two examples:

  1. With old packages
  2. With updated packages

The first change comparing both of them is, that with updated packages the form is not in invalid state on the initial load (invalid flag is false) upon first interaction with the form.
The main issue is with unchecking the Employed? checkbox. The
errors object is containing the job.description error even if the job value is deleted. I had a luck to resolve it with the form level validate function returning the empty object, but I think this one is not desired:

  1. With updated packages and form level validate function

What's your environment?

FF 4.3.1, RFF 3.14

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions