-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
使用edge-editor插件双击编辑label时,再次双击label消失,或出现多个label #3973
Comments
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
这个 #3968 中已经修复,但是我发包发错了,我重新发一下,你升级到 2.15.4。 |
移动端双击事件无效呀 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
使用edge-editor插件配置项tools: ['edge-editor']时,编辑状态再次双击时label消失。
另外,使用edge.addTools双击编辑label时,连续双击出现多个label。在label上和边上双击都一样,双击进入编辑状态,再次双击编辑状态关闭,再次双击时出现双倍label标签。在编辑状态点击其他地方关闭标签后,再次双击边上又多了一个label输入框。
Your Example Website or App
https://codesandbox.io/s/upbeat-bush-2j5zxm?file=/App.tsx:1627-1650 和 https://codesandbox.io/s/interesting-archimedes-ktdczq?file=/App.tsx
Steps to Reproduce the Bug or Issue
使用edge-editor插件配置项tools: ['edge-editor']时,编辑状态再次双击时label消失。
另外,使用edge.addTools双击编辑label时,连续双击出现多个label。在label上和边上双击都一样,双击进入编辑状态,再次双击编辑状态关闭,再次双击时出现双倍label标签。在编辑状态点击其他地方关闭标签后,再次双击边上又多了一个label输入框。
graph.on("edge:mouseenter", ({ edge }) => {
edge.addTools({
name: "edge-editor"
});
});
Expected behavior
同一时间只存在一个label框,且再次双击时不会消失
Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: