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

This commit is contained in:
Joel 2026-07-17 16:01:46 +08:00 committed by GitHub
parent 5a792945f5
commit 0e84ae7338
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -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,

View File

@ -83,6 +83,7 @@ export function ChangeBlockMenuTrigger({
ignoreNodeIds={ignoreNodeIds}
forceEnableStartTab={nodeData.type === BlockEnum.Start}
allowUserInputSelection={allowStartNodeSelection}
isolateKeyboardEvents
/>
)
}