Ref broken on custom component

Author: barettjfedCreated Mar 12, 2026Updated Mar 12, 2026

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.

Source: final-form/react-final-form