MCPcopy Create free account
hub / github.com/core7s/react-design-editor / handleDragOut

Function handleDragOut

src/components/Dropzone/DropZone.tsx:42–49  ·  view source on GitHub ↗
(e: DragEvent)

Source from the content-addressed store, hash-verified

40 }
41 }
42 const handleDragOut = (e: DragEvent) => {
43 e.preventDefault()
44 e.stopPropagation()
45 dragCounter--
46 if (dragCounter > 0) return
47
48 setIsDragging(false)
49 }
50 const handleDrop = (e: DragEvent) => {
51 e.preventDefault()
52 e.stopPropagation()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected