From 0e84ae7338af5c37fbd270c99f116d0fabc0024d Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 17 Jul 2026 16:01:46 +0800 Subject: [PATCH] fix: can not typing in the change node search field (#39189) --- .../workflow/node-actions-menu/__tests__/details.spec.tsx | 3 +++ .../workflow/node-actions-menu/change-block-menu-trigger.tsx | 1 + 2 files changed, 4 insertions(+) diff --git a/web/app/components/workflow/node-actions-menu/__tests__/details.spec.tsx b/web/app/components/workflow/node-actions-menu/__tests__/details.spec.tsx index ee1ca6b3859..4ffb14f12ee 100644 --- a/web/app/components/workflow/node-actions-menu/__tests__/details.spec.tsx +++ b/web/app/components/workflow/node-actions-menu/__tests__/details.spec.tsx @@ -31,6 +31,7 @@ vi.mock('@/app/components/workflow/block-selector', () => ({ ignoreNodeIds, forceEnableStartTab, allowUserInputSelection, + isolateKeyboardEvents, }: any) => (
{trigger()}
@@ -39,6 +40,7 @@ vi.mock('@/app/components/workflow/block-selector', () => ({
{`ignore:${(ignoreNodeIds || []).join(',')}`}
{`force-start:${String(forceEnableStartTab)}`}
{`allow-start:${String(allowUserInputSelection)}`}
+
{`isolate-keyboard:${String(isolateKeyboardEvents)}`}
@@ -172,6 +174,7 @@ describe('node actions menu details', () => { expect(screen.getByText('ignore:')).toBeInTheDocument() expect(screen.getByText('force-start:false')).toBeInTheDocument() expect(screen.getByText('allow-start:false')).toBeInTheDocument() + expect(screen.getByText('isolate-keyboard:true')).toBeInTheDocument() expect(handleNodeChange).toHaveBeenCalledWith( 'node-1', BlockEnum.HttpRequest, diff --git a/web/app/components/workflow/node-actions-menu/change-block-menu-trigger.tsx b/web/app/components/workflow/node-actions-menu/change-block-menu-trigger.tsx index 8d6e9bacfc8..a9e9ba82faf 100644 --- a/web/app/components/workflow/node-actions-menu/change-block-menu-trigger.tsx +++ b/web/app/components/workflow/node-actions-menu/change-block-menu-trigger.tsx @@ -83,6 +83,7 @@ export function ChangeBlockMenuTrigger({ ignoreNodeIds={ignoreNodeIds} forceEnableStartTab={nodeData.type === BlockEnum.Start} allowUserInputSelection={allowStartNodeSelection} + isolateKeyboardEvents /> ) }