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

[Question]请问有什么方法可以阻止node双击事件 #1251

Closed
ascendQing opened this issue Jul 27, 2023 · 2 comments
Closed

[Question]请问有什么方法可以阻止node双击事件 #1251

ascendQing opened this issue Jul 27, 2023 · 2 comments

Comments

@ascendQing
Copy link

问题描述

现在监听node双击事件,弹出一个弹窗,需要把框架的编辑node名称的这个功能阻止掉,尝试用data.e.stopPropagation(),但并没有阻止掉

最简复现

this.lf.on('node:dbclick', data => {
data.e.stopPropagation()
})

相关信息 context

LogicFlow Version:
Node Version:
Platform:

@github-actions
Copy link

由于所提供信息的不充分,该 issue 被暂时关闭了。请修改 issue 以提供最小可复现示例(可以通过以下方式:1. 在任意在线编码平台如 codesanbox 编写示例。将其保存到自己空间,然后贴上链接。2. 在自己 github 中创建一个最简单的示例,然后贴上 github 链接。3. 删除项目中的 node_modules 部分,打包项目,并拖拽到 issue 输入框中上传(或提供远程可下载地址))来重启 issue。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2023
@wumail
Copy link
Collaborator

wumail commented Jul 28, 2023

可以尝试通过lf.eventCenter.off('node:dbclick')清除所有注册的node:dbclick监听事件,再重新注册你自己的。另外,你这个不是bug report。

@wumail wumail changed the title [Bug report]请问有什么方法可以阻止node双击事件 [Question]请问有什么方法可以阻止node双击事件 Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants