Repository navigation
Subagent 数量按钮无法通过点击或移动端 tap 打开目录 #5206
NOirBRight
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
问题
官方
SubagentHeaderLineage的普通 descendant-count 控件使用了<button aria-haspopup="tree">,但鼠标点击或移动端 tap 不会打开目录;目前只能 hover 150ms,或聚焦后按ArrowDown。这在移动端尤其明显,因为移动端没有可靠 hover,用户看到按钮和下拉箭头却无法通过 tap 打开。
最小复现
ArrowDown可以打开。代码原因
CatalogDropdown的 count 变体类型明确没有openTitle:但 trigger 的点击逻辑是:
所以 count trigger 必然得到
onClick={undefined}。openTitle分支实际服务于 ancestor title 导航,不应同时决定 catalog 是否能够通过 click/tap 打开。期望行为
ArrowDown键盘行为;aria-expanded与实际状态同步;该问题可以在纯官方构建中复现,与自定义 Subagent runtime 或 Sidebar 插件无关。
All reactions