New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.X node-editor工具双击节点时节点的attrs.text.text被清空,无法获取到 #4293
Comments
👋 @wxymmxf Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
import { Graph } from "@antv/x6"; const container = document.getElementById("container")!; const source = graph.addNode({ const target = graph.addNode({ graph.addEdge({ graph.on("cell:dblclick", ({ cell, e }) => { |
如果节点的初始化不添加node-editor工具,在双击事件中动态添加,则无法实现双击编辑,编辑光标一闪而过。
}) |
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
kk.2024-05-07.23-32-23.mp4
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: