final-form / final-form/react-final-form

Ref broken on custom component

Open
#1,082 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.