Skip to content
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

node-editor双击编辑后,再次双击会导致文本被清空 #3869

Open
TalentJY opened this issue Aug 23, 2023 · 3 comments
Open

node-editor双击编辑后,再次双击会导致文本被清空 #3869

TalentJY opened this issue Aug 23, 2023 · 3 comments
Labels
type: bug 缺陷 Defects and unexpected behaviors

Comments

@TalentJY
Copy link

问题描述

node-editor双击编辑后,再次双击会导致文本被清空,官方例子也是这样

重现链接

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

重现步骤

1.双击进入编辑模式
2.再次快速双击

预期行为

双击不应该清空

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@wh356667852
Copy link

官方文档中写的很清楚了,还是因为没仔细看文档。
http://x6.antv.antgroup.com/api/registry/node-tool

@TalentJY
Copy link
Author

TalentJY commented Sep 4, 2023

官方文档中写的很清楚了,还是因为没仔细看文档。 http://x6.antv.antgroup.com/api/registry/node-tool

在哪呀。。 ,文档看了好久 也没有讲到我这个问题的

@apankun
Copy link

apankun commented Oct 10, 2023

官方文档中写的很清楚了,还是因为没仔细看文档。 http://x6.antv.antgroup.com/api/registry/node-tool

在哪呀。。 ,文档看了好久 也没有讲到我这个问题的

我也想问在哪。不知道是不是因为源码里面updateEditor的时候特地设置了edit状态 this.setCellText('')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 缺陷 Defects and unexpected behaviors
Projects
None yet
Development

No branches or pull requests

4 participants