antvis / antvis/Graphin

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

Open
#522 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

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

❓文件:`packages/graphin/src/components/Tooltip/index.tsx` 53行 `const container = React.createRef();` 为什么没有放到 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

- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.