Skip to content

Ref broken on custom component #1082

@barettjfed

Description

@barettjfed

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions