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

Bug: FieldTemplateProps.fields is incorrectly typed #2673

Closed
3 tasks done
sophstad opened this issue Jan 24, 2022 · 4 comments
Closed
3 tasks done

Bug: FieldTemplateProps.fields is incorrectly typed #2673

sophstad opened this issue Jan 24, 2022 · 4 comments
Labels

Comments

@sophstad
Copy link
Contributor

Prerequisites

Description

The docs and package exports indicate that fields within FieldTemplateProps is an array of Fields. However, a form with a custom FieldTemplate indicates that fields is an object.

Steps to Reproduce

JSFiddle: https://jsfiddle.net/5v1wsru9/

Expected behavior

FieldTemplateProps.fields is an array

Actual behavior

FieldTemplateProps.fields is an object (this makes more sense, but the documentation and typing appear to be incorrect)

Version

v3.2.1

@epicfaace
Copy link
Member

Thanks for reporting. Do you mind making a PR to update this?

@epicfaace
Copy link
Member

to update the documentation and typing

@sophstad
Copy link
Contributor Author

Happy to do so! Thanks @epicfaace

@jacqueswho jacqueswho added the bug label Feb 22, 2022
@heath-freenome
Copy link
Member

Fixed in the v5 beta, see the 5.x migration guide

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

No branches or pull requests

4 participants