MCPcopy Index your code
hub / github.com/adobe/react-spectrum / fireDropExit

Function fireDropExit

packages/react-aria/src/dnd/useDrop.ts:136–147  ·  view source on GitHub ↗
(e: DragEvent)

Source from the content-addressed store, hash-verified

134 };
135
136 let fireDropExit = (e: DragEvent) => {
137 setDropTarget(false);
138
139 if (typeof options.onDropExit === 'function') {
140 let rect = (e.currentTarget as HTMLElement).getBoundingClientRect();
141 options.onDropExit({
142 type: 'dropexit',
143 x: e.clientX - rect.x,
144 y: e.clientY - rect.y
145 });
146 }
147 };
148
149 let onDragOver = (e: DragEvent) => {
150 e.preventDefault();

Callers 3

onDragOverFunction · 0.85
onDragLeaveFunction · 0.85
onDropFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected