Akryum / Akryum/floating-vue

Hover Menu: focus and hover triggers are incompatible

未关闭
#1,049 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
3.5k
派生
341
平均合并
14 分钟
30 天内合并 PR
8

描述

I'd like to use the Hover Menu component on my site's navbar, but I'm running into an issue. I'd like the dropdown to open on hover for mouse users, and I'd also like to let keyboard users open the dropdown by focusing the button. However, when both of these triggers are active, the focus trigger doesn't work.

The hover functionality hides the dropdown when the mouse is detected as outside of the dropdown area, which is great for mouse users, but not for keyboard users. When the mouse is outside the dropdown area, focusing the dropdown button will activate the dropdown for a brief moment before closing again. Is there a way to tell the component to keep the dropdown open if the mouse isn't moving?

You can reproduce this issue in the documentation: [https://floating-vue.starpad.dev/guide/component#hover-menu](https://floating-vue.starpad.dev/guide/component#hover-menu)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。