fix(web): Prevent dragging node when selecting text in parameter input fields (#2560)

This commit is contained in:
yyhhyy
2025-03-31 19:55:16 +08:00
committed by GitHub
parent beafca5c6c
commit 9fce5cec3d
146 changed files with 302 additions and 750 deletions

View File

@@ -66,7 +66,7 @@ const NodeParamHandler: React.FC<NodeParamHandlerProps> = ({ formValuesChange, n
options={data.options.map((item: any) => ({ label: item.label, value: item.value }))}
/>
) : (
<Input className='w-full' />
<Input className='w-full nodrag' />
)}
</Form.Item>
);
@@ -83,7 +83,7 @@ const NodeParamHandler: React.FC<NodeParamHandlerProps> = ({ formValuesChange, n
label={<span className='text-neutral-500'>{data.label}</span>}
tooltip={data.description ? { title: data.description, icon: <InfoCircleOutlined /> } : ''}
>
<Checkbox className='ml-2' />
<Checkbox className='ml-2 nodrag' />
</Form.Item>
);
}

View File

@@ -6,5 +6,5 @@ const { TextArea } = Input;
export const renderTextArea = (data: IFlowNodeParameter) => {
const attr = convertKeysToCamelCase(data.ui?.attr || {});
return <TextArea className='nowheel mb-3' {...attr} />;
return <TextArea className='nowheel mb-3 nodrag' {...attr} />;
};