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

[Bug Report]: 节点内部input和外部快捷键冲突 删除 赋值 粘贴 #1607

Open
shaohuzhang1 opened this issue May 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@shaohuzhang1
Copy link

发生了什么?

当内部节点有input输入框的时候,我想节点快捷键不生效
image
为此我在节点在获取焦点的时候,使用
lf.keyboard.disable()
函数禁用快捷键
在选择节点的时候有开启
lf.keyboard.disable()
这个函数时而有效 时而不生效
image
image

logicflow/core版本

1.2.17

logicflow/extension版本

1.2.17

logicflow/engine版本

No response

浏览器&环境

No response

@shaohuzhang1 shaohuzhang1 added the bug Something isn't working label May 20, 2024
@boyongjiong
Copy link
Collaborator

麻烦用 codesandbox 提供一下你的自定义节点,我理解在节点内表单元素的事件中阻止冒泡应该不会出现这种问题,我在自己的 Demo 里试的,不知道你怎么写的,辛苦提供下代码

@shaohuzhang1
Copy link
Author

阻止事件冒泡确实可以,但是keyboard.disable() 和keyboard.enable() 似乎有时无效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants