Base UI submenu links close without navigating under Redact

未关闭
#70 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript, vite
领域
frontend

调研方向

Start with the supplied reproduction and compare pnpm dev with pnpm dev:react, using a real pointer click on More → Pages → Example page. Trace how Redact handles the portalled Base UI submenu’s pointerdown outside-press before the link’s click; done means the click navigates to /example in development and production while the menu can still close.

由索引模型根据 Issue 内容生成。

描述

Clicking a TanStack Router link inside a portalled Base UI submenu closes the menu without navigating. Hover preloading still works.

Reproduction: https://github.com/fcannizzaro/tanstack-redact-portal-issue

  1. Run pnpm install && pnpm dev.
  2. Open More → Pages.
  3. Hover Example page, then click its text.

Expected: Navigate to /example.

Actual: The menu closes with outside-press on pointerdown, before the link receives click. The URL stays unchanged.

Running pnpm dev:react restores navigation. Reproduced in development and production builds. Real pointer input is required; programmatic element.click() works.

Versions: Redact 0.1.5, Base UI 1.9.0, TanStack Router 1.170.46, React 19.3.1, Vite 8.3.4.

主要语言
TypeScript
星标
581
派生
28
平均合并
13 小时 48 分钟
30 天内合并 PR
45

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TanStack/redact 的其他 Issue

查看 TanStack/redact 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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