diff --git a/src/components/FormEditor.tsx b/src/components/FormEditor.tsx index c412030a..d18ce1ad 100644 --- a/src/components/FormEditor.tsx +++ b/src/components/FormEditor.tsx @@ -27,6 +27,7 @@ interface FormEditorProps { error?: { message?: string; }; + disableAttaches?: boolean; messages?: { attachmentsButton: string; @@ -266,6 +267,7 @@ export const FormEditor = React.forwardRef( onBlur, onCancel, messages = {}, + disableAttaches, }, ref, ) => { @@ -411,7 +413,7 @@ export const FormEditor = React.forwardRef( {...onESC} onClick={disabled ? undefined : () => {}} > - {nullable(isDragActive, () => ( + {nullable(isDragActive && !disableAttaches, () => ( @@ -460,7 +462,7 @@ export const FormEditor = React.forwardRef( onMount={handleEditorDidMount} /> - {nullable(focused, () => ( + {nullable(focused && !disableAttaches, () => (