MCPcopy Create free account
hub / github.com/cursor/community-plugins / handleDragOver

Function handleDragOver

apps/cursor/src/components/upload-logo.tsx:80–82  ·  view source on GitHub ↗
(e: DragEvent<HTMLButtonElement>)

Source from the content-addressed store, hash-verified

78
79 // preventDefault is required for the drop event to fire.
80 const handleDragOver = (e: DragEvent<HTMLButtonElement>) => {
81 e.preventDefault();
82 };
83
84 const handleFileInput = (e: ChangeEvent<HTMLInputElement>) => {
85 const file = e.target.files?.[0];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected