antvis / Graphin

A React toolkit for graph visualization based on G6
https://graphin.antv.antgroup.com
MIT License
980 stars 263 forks source link

node 和 edge 同时存在 tooltip 时,第一个 tooltip 移入浮窗内容时不会保持 #522

Open marcccc opened 6 months ago

marcccc commented 6 months ago

Describe the bug

Graphin tooltip 组件,node 和 edge 同时存在 tooltip 时,第一个 tooltip 移入浮窗内容时不会保持

❓文件:packages/graphin/src/components/Tooltip/index.tsx 53行 const container = React.createRef<HTMLDivElement>(); 为什么没有放到 Tooltip 函数组件内

Your Example Website or App

Steps to Reproduce the Bug or Issue

配置两个Tooltip分别绑定 node 和 edge

Expected behavior

两个Tooltip浮窗内容移入时都会保持住

Screenshots or Videos

No response

Platform

Additional context

No response