Skip to content

Reflected components doesn't work properly with Radix UI components with asChild props #68

@ghost

Description

Reproduce:

If you use reflected component as a children for Radix UI component with asChild prop you will get this error:
Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

I think the reason for this error is that the reflected components are not wrapped with forwardRef

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions