Bug reportNov 18, 2026· 0:23· 10 views
ariakit Hovercard closes while keyboard focus is inside it (hide timer fires regardless of focus)
0:23 total
Comments · 0
Be the first to comment.
Bug reportby SceneRecap AI
mediumHovercard hide timer and focus handling: the hide timeout should be cancelled or skipped while focus is within the hovercard.
os: macOSdpr: 1page: /examples/hovercardlocale: en-USbrowser: Chromium 151.0.7922.34timezone: Europe/Berlinviewport: 1280x720library_version: v0.4.43
Repro steps
- 1.Open the Ariakit hovercard example page at /examples/hovercard.
- 2.Hover the '@ariakit.com' link in the preview to open the hovercard.
- 3.Move the pointer away from the link and card. The card closes and the link shows a focus ring.
- 4.With the link focused, have the hovercard open again and the pointer resting away from the link and card.
- 5.Press Tab without moving the pointer.
Expected
After pressing Tab, keyboard focus should move into the hovercard, for example to the 'Follow' button. The card should stay open while focus is inside it, even if the pointer is outside.
Actual
The hovercard closes within about 2 seconds of the Tab press while the pointer does not move. The link still shows a focus ring afterward. The frames do not show which element held focus after Tab.
Evidence
visualControl: hovering the '@ariakit.com' link opens the hovercard with the avatar, 'Follow' button and description text.
visualControl: the card closes after the pointer leaves. This is normal hover-out behavior. The link now shows a focus ring.
visualThe hovercard is open, the link has a focus ring and the cursor rests in the lower part of the preview.
visualA Tab key press is logged in the interaction events.
visualThe hovercard is closed with the cursor in the same position as at 11.0s. The link still shows a focus ring.
visualThe hovercard stays closed and the cursor has not moved.
visualControl: hovering the link again reopens the hovercard.
Issue markdown (copy-paste ready)
## Summary The Ariakit hovercard example (v0.4.43) closes about 2s after pressing Tab, while the pointer stays still. Tab should move focus into the card, so the hide timer seems to fire regardless of focus. ## Environment - Chromium 151.0.7922.34, macOS - Viewport 1280x720, DPR 1 - Page: /examples/hovercard ## Steps to reproduce 1. Open /examples/hovercard (0.0s). 2. Hover the `@ariakit.com` link to open the hovercard (5.0s). 3. Move the pointer away. The card closes and the link shows a focus ring (9.0s). 4. With the link focused, have the card open again and the pointer resting away from the link and card (11.0s). 5. Press Tab without moving the pointer (11.159s). ## Expected Focus moves into the hovercard, for example to the `Follow` button, and the card stays open while focus is inside it. ## Actual The card is closed by 13.0s with no pointer movement. It stays closed at 15.0s. The link still shows a focus ring. The frames do not show which element held focus after Tab. ## Control - Hover opens the card (5.0s) and hover-out closes it (9.0s), as expected. - Hovering the link again reopens the card (21.0s). ## Suggested area Hovercard hide timeout logic. Check whether focus is within the popover before hiding. *Recorded with SceneRecap.*
Your recordings could explain themselves too.
Free plan · silent recordings welcome · bug reports included.
Try SceneRecap free →