final-form / final-form/react-final-form
Ref broken on custom component
Open
- Dominant language
- JavaScript
- Stars
- 7.4k
- Forks
- 497
- PR merge metrics
- No merged PRs in 30d
Description
In version 7.0.0 a bug was introduced that does not pass ref to the custom component on render.
Previous version Field.js:
`return renderComponent(
{ children, component, ref, ...rest },
field,
`Field(${name})`,
);`
Version 7.0.0 Field.tsx:
` return renderComponent(
{ children, component, ...rest, ...field },
{},
`Field(${name})`,
);
`
Missing the ref prop.
Contributor guide
Assessment
This issue has not been assessed yet.