antvis / antvis/X6

在cell:mouseleave的时候cell.removeTools({name:'button-remove'}) ,然而边上的edge-editor也会跟着一起被删除

Open
#3,574 12 comments 0 reactions 0 assignees View on GitHub
oscp type: bug 缺陷
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

双击添加边上的edge-editor,原有的功能是划入在cell上添加button-remove,移除的时候删除,但是他在移出的时候会将edge-editor一起个删除了

### 重现链接

https://codesandbox.io/s/silly-goldberg-ejilkq?file=/src/app.tsx

### 重现步骤

在边上双击然后鼠标移出边

### 预期行为

只删除button-remove

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- X6 版本: [1.28.2 ... ]

### 屏幕截图或视频(可选)

https://user-images.githubusercontent.com/56207464/236983109-3fab9e26-a0dd-4789-a083-fe5b657cb75b.mp4

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the reproduction at the linked CodeSandbox and trace the cell:mouseleave handler that calls cell.removeTools({name:'button-remove'}) after double-clicking an edge. Confirm why the edge-editor is also removed, then verify that moving off the edge removes only button-remove while preserving edge-editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.