antvis / antvis/X6

2.X node-editor工具双击节点时节点的attrs.text.text被清空,无法获取到

Open
#4,293 7 comments 0 reactions 0 assignees View on GitHub
bug 🐛 oscp
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

2.X node-editor工具双击节点时节点的attrs.text.text被清空,无法获取到

### Your Example Website or App

https://x6.antv.antgroup.com/examples/node/tool/#editable

### Steps to Reproduce the Bug or Issue

1.给节点的label, text都赋值
2.添加node-editor工具
3.双击节点,发现text.text被清空

### Expected behavior

参考:https://codesandbox.io/p/sandbox/charming-tharp-5yhxrn

### Screenshots or Videos

https://github.com/antvis/X6/assets/34330221/1adb11af-592c-4a93-9518-625c0b2ca110

### Platform

- OS: Windows
- Browser: Chrome
- Version: 2.18.1

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the node-editor tool in the editable example at https://x6.antv.antgroup.com/examples/node/tool/#editable and reproduce the double-click behavior using the steps in the issue. Compare it with the linked CodeSandbox example; done means a node with both label and text retains attrs.text.text after editing.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.