diff --git a/ui/src/workflow/nodes/ai-chat-node/index.vue b/ui/src/workflow/nodes/ai-chat-node/index.vue index 6daa605b2..02e919eb0 100644 --- a/ui/src/workflow/nodes/ai-chat-node/index.vue +++ b/ui/src/workflow/nodes/ai-chat-node/index.vue @@ -25,6 +25,9 @@ }" > { + if (isKeyDown.value) { + e.preventDefault() + } else { + e.stopPropagation() + return true + } +} const { params: { id } } = app.config.globalProperties.$route as any diff --git a/ui/src/workflow/nodes/question-node/index.vue b/ui/src/workflow/nodes/question-node/index.vue index a1c4710b7..3247aa9b8 100644 --- a/ui/src/workflow/nodes/question-node/index.vue +++ b/ui/src/workflow/nodes/question-node/index.vue @@ -25,6 +25,9 @@ }" > { + if (isKeyDown.value) { + e.preventDefault() + } else { + e.stopPropagation() + return true + } +} const { params: { id } } = app.config.globalProperties.$route as any