Tencent / Tencent/tdesign-react
[Popup] triggerNode 位置变化时,overlay 未跟随移动
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
tdesign-react 版本
1.15.1
重现链接
https://codesandbox.io/p/sandbox/f9dqjq
重现步骤
见 code sandbox。创建一个 react flow 画布,其上节点包含 Popconfirm 组件。移动画布,Popconfirm 未跟着动,留在原地了。
期望结果
Popconfirm 应该跟着其上级组件(如:挂在 Button 上的 Popconfim,应该在 Button 位置被改变后跟着改变)移动。
实际结果
移动画布,Popconfirm 未跟着动,留在原地了。
框架版本
React(19.1.1)
浏览器版本
Chrome(140.0.7339.208)
系统版本
Windows11(23H2)
Node版本
22.19.0
补充说明
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CodeSandbox reproduction and trace how Popconfirm positions its overlay relative to the triggerNode while the React Flow canvas moves. Check the Popconfirm positioning implementation and related tests, if present; done means the overlay follows the moved trigger component instead of remaining at its original position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100