Skip to content

BUG: Object literal may only specify known properties, and 'ref' does not exist in type 'Partial<unknown> & Attributes'. #622

@kotAPI

Description

@kotAPI

Description

We have a couple of tests failing with an error reading

 src/core/primitives/Primitive/index.tsx:19:68 - error TS2769: No overload matches this call.
      The last overload gave the following error.
        Object literal may only specify known properties, and 'ref' does not exist in type 'Partial<unknown> & Attributes'.

    19             return React.cloneElement(children, { ...elementProps, ref });

Possibly introduced in #583

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