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

Closed
Nplayers opened this issue Oct 13, 2023 · 4 comments

Comments

@Nplayers
Copy link

Nplayers commented Oct 13, 2023

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-1650https://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

image

image

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 2.15.2

Additional context

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 13, 2023

👋 @Nplayers

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@Nplayers Nplayers reopened this Oct 13, 2023
@NewByVector
Copy link
Contributor

这个 #3968 中已经修复,但是我发包发错了,我重新发一下,你升级到 2.15.4。

@yanghui123
Copy link

移动端双击事件无效呀

@x6-bot
Copy link
Contributor

x6-bot bot commented Dec 20, 2024

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.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Dec 20, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants