[Bug] 图表 Tooltip 会在根节点创建元素,这些元素在 Vue 中切换页面后不会销毁,会导致其他页面的异常滚动条
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 221
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 26
Description
Version
2.0.0
Link to Minimal Reproduction
Steps to Reproduce
最小复制品当鼠标移入图表显示 Tooltip 后,切换到 about 页面,about 会出现异常滚到条
Current Behavior
创建的 Tooltip 元素通过 visibility: hidden; 控制显示隐藏,切换页面 Tooltip 元素不会自动销毁,会导致其他页面的异常滚动条
Expected Behavior
鼠标移出图表后 Tooltip 自动销毁,而不是隐藏
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
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 linked minimal reproduction and inspect the chart Tooltip lifecycle around mouseenter, mouseout, and page navigation. Confirm that the tooltip element is removed after the pointer leaves the chart, then verify that switching to the about page no longer leaves an extra scrollbar.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100