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

Meta.active and meta.touched always undefined? #175

Open
mmoo opened this issue Nov 16, 2022 · 0 comments
Open

Meta.active and meta.touched always undefined? #175

mmoo opened this issue Nov 16, 2022 · 0 comments

Comments

@mmoo
Copy link

mmoo commented Nov 16, 2022

Are you submitting a bug report or a feature request?

A bug report

What is the current behavior?

Looks like the props meta.active and meta.touched of FieldArrayRenderProps are always undefined. To reproduce please open the sandbox and do anything with the fields.
https://codesandbox.io/s/react-final-form-field-arrays-forked-ebtzy0

What is the expected behavior?

Not sure I'm getting it right from the docs but I would assume meta.active to be true if one of the fields in the array is active. Also, meta.touched could mean that at least one of the fields has been touched.
Alternatively, I'd expect these props to contain arrays of all the fields' corresponding meta values.
What I didn't expect is them being undefined all the time.

Sandbox Link

https://codesandbox.io/s/react-final-form-field-arrays-forked-ebtzy0

What's your environment?

    "final-form": "4.20.1",
    "final-form-arrays": "3.0.2",
    "react": "16.8.6",
    "react-dom": "16.8.6",
    "react-final-form": "6.5.3",
    "react-final-form-arrays": "3.1.4",

Other information

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

No branches or pull requests

1 participant