edge-editor 双击编辑内容,触发了新增label
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
当edge-editor和vertices 同时使用时,双击编辑label内容时,会触发新增。
分析发现无法聚焦label,双击时会触发边点击,触发了新增label。
### 重现链接
https://codesandbox.io/p/sandbox/sharp-kalam-kqxq2d?file=%2Fsrc%2FApp.js%3A30%2C26
### 重现步骤
1.双击edge添加label 确定
2 双击编辑文字内容,无法聚焦label,会触发新增label
### 预期行为
正常编辑label内容
### 平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox ...]
- X6 版本: [2.11.1 ...]
### 屏幕截图或视频(可选)
https://github.com/antvis/X6/assets/165548120/8df9317f-e515-4403-a265-4142c9e7eb6b
### 补充说明(可选)
_No response_
Contributor guide
Research direction
Start with the linked CodeSandbox at src/App.js around lines 30–26 and reproduce the interaction with edge-editor and vertices. Trace the double-click handling for label editing; done means double-clicking existing label text focuses it for editing without triggering a new label.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100