diff --git a/src/components/Shakespeare/ChatInput.tsx b/src/components/Shakespeare/ChatInput.tsx index 5c4fef04..3045fc6b 100644 --- a/src/components/Shakespeare/ChatInput.tsx +++ b/src/components/Shakespeare/ChatInput.tsx @@ -89,6 +89,21 @@ export const ChatInput = memo(function ChatInput({ setInput(e.target.value); }, []); + const handleDrop = useCallback((e: React.DragEvent) => { + e.preventDefault(); + e.stopPropagation(); + + // Call parent's drop handler for visual state management + onDrop(e); + + // Extract files from the drop event + const files = Array.from(e.dataTransfer.files); + if (files.length === 0) return; + + // Add all files without validation + setAttachedFiles(prev => [...prev, ...files]); + }, [onDrop]); + return (