Skip to content

data-state composition issue when composing multiple primitives with asChild #602

Open
@jjenzz

Description

@jjenzz

Stemmed from this discussion #560 (comment)

When I did <Dialog.Trigger as={Tooltip.Trigger}> the data-state attribute was maintained from Dialog.Trigger instead of being overridden with the Tooltip.Trigger one. I'm not sure if this is a misunderstanding of as prop on my part (they're a confusing beast) but thought it worth looking into as a DX improvement if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Has WorkaroundThis issue isn't fixed but has a workaround

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions