Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: can not typing in the change node search field (#39189)

Joel0e84ae7338af
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) => (
<div>
<div>{trigger()}</div>
@@ -39,6 +40,7 @@ vi.mock('@/app/components/workflow/block-selector', () => ({
<div>{`ignore:${(ignoreNodeIds || []).join(',')}`}</div>
<div>{`force-start:${String(forceEnableStartTab)}`}</div>
<div>{`allow-start:${String(allowUserInputSelection)}`}</div>
+ <div>{`isolate-keyboard:${String(isolateKeyboardEvents)}`}</div>
<button type="button" onClick={() => onSelect(BlockEnum.HttpRequest)}>
select-http
</button>
@@ -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
/>
)
}