mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-14 05:31:40 +00:00
fix(web): Prevent dragging node when selecting text in parameter input fields (#2560)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
@@ -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} />;
|
||||
};
|
||||
|
Reference in New Issue
Block a user