Skip to content

The open alternative to Salesforce, designed for AI.

Fix AI chat dropzone persisting when dragging file out without dropping (#19794)

Abdul Rahmana93f23a150f7
diff --git a/packages/twenty-front/src/modules/ai/components/AIChatTab.tsx b/packages/twenty-front/src/modules/ai/components/AIChatTab.tsx
index 16fb6f559de..0f71c3eca2f 100644
--- a/packages/twenty-front/src/modules/ai/components/AIChatTab.tsx
+++ b/packages/twenty-front/src/modules/ai/components/AIChatTab.tsx
@@ -42,6 +42,7 @@ export const AIChatTab = () => {
<StyledContainer
isDraggingFile={isDraggingFile}
onDragEnter={() => setIsDraggingFile(true)}
+ onDragLeave={() => setIsDraggingFile(false)}
>
{isDraggingFile && (
<DropZone