Skip to content

Hover Card Content can't be focused inside Dialog #920

Closed
@bogdansoare

Description

@bogdansoare

Bug report

The Hover Card content closes inside the Dialog even though is hovered.

Current Behavior

Screen.Recording.2021-10-15.at.14.15.06.mov

Expected behavior

The hover card content should remain open when hovered

Reproducible example

https://codesandbox.io/s/confident-albattani-ckgqr?file=/App.js

Suggested solution

Screenshot 2021-10-15 at 14 20 09

The dialog and the hover card are in 2 different portals, so maybe there needs to be a way to specify that the hover card portal should be on top.

Your environment

Software Name(s) Version
Radix Package(s) react-dialog, react-hover-card 0.1.1
React n/a 17
Browser Chrome 94
Operating System mac OS Big Sur

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions