jaredpalmer / jaredpalmer/formik

meta prop is not passed to component in Field and FastField

Open
#2,425 1 comment 11 reactions 0 assignees View on GitHub
stale
Dominant language
TypeScript
Stars
34.3k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

v2.1.4
I have the following simple field.
```ts
!v ? "Required" : undefined}
/>
```
And I'm logging in the render() function of TextField2 all the props, and the form does get validated because it doesn't let me submit it, but meta isn't passed to TextField2. `field` prop contains only `{ name, onChange, onBlur, value }`. This happens with both Field and FastField. What am I missing here?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the supplied TypeScript example with both Field and FastField, then inspect how each forwards props to TextField2. Verify whether validation metadata is available at the component boundary and add or update coverage for the reported behavior if the repository has a matching test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.