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 /> ) }