Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[re-create] The HoverCard called within the Dialog unintentionally disappears. #2224

Open
1 of 3 tasks
srkw opened this issue Jan 20, 2025 · 2 comments
Open
1 of 3 tasks

Comments

@srkw
Copy link

srkw commented Jan 20, 2025

Description

Hello,

I previously opened an issue and received a response, but since the problem remains unresolved, I'm creating another issue.

I am currently using @chakra-ui/react and @chakra-ui/cli version 3.3.1.
When I call HoverCard inside DialogContent, hovering over the HoverCardTrigger displays the HoverCardContent on the screen. However, when I hover over the HoverCardContent, it disappears.

Unfortunately, this issue occurs intermittently but frequently enough to notice (about 50% of the time, perhaps).

I would like to create a UI where a button inside the HoverCardContent can be clicked after the HoverCardContent is displayed.

@segunadebayo previously provided the following URL to me, but even after trying the suggested solution, it still doesn't work.
Moreover, the same issue occurs in the sample code from the official documentation.

2025-01-20.11.00.26.mov

Could you please let me know if there is a solution?

Link to Reproduction

https://stackblitz.com/edit/chakra-ui-v3-nxrpynzj?file=src%2FApp.tsx,package.json

Steps to reproduce

  1. Open "Reproduction" URL.
  2. Click on 'First, Click me' button.
  3. Hover on 'Second, Hover me' button.
  4. Try to hover HoverCard Content.

Chakra UI Version

3.3.1

Browser

Google Chrome 132.0.6834.84

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

@srkw
Copy link
Author

srkw commented Feb 3, 2025

I understand you’re busy, but I would really appreciate it if you could take a look when you have a moment.

Thank you so much for your excellent work! @segunadebayo

@segunadebayo segunadebayo transferred this issue from chakra-ui/chakra-ui Feb 5, 2025
@segunadebayo
Copy link
Member

Moved to Zag.js where it'll be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants