Skip to content

Using asChild with Remixicon SVG element produces error "Function components cannot be given refs." #141

@zoodirector

Description

@zoodirector

Hello,
maybe I am doing something wrong, but when I use the tremor raw Select v1.0.0 it will produce this error:

Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

The problem seems to be, that asChild does not work with RemixIcon icons:

<SelectPrimitives.Icon asChild>

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