MCPcopy Create free account
hub / github.com/adobe/react-spectrum / onDropExit

Function onDropExit

packages/react-aria/src/dnd/useDroppableCollection.ts:228–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 return localState.dropOperation;
227 },
228 onDropExit() {
229 setDropCollectionRef(undefined);
230 state.setTarget(null);
231 autoScroll.stop();
232 },
233 onDropActivate(e) {
234 if (state.target?.type === 'item' && typeof props.onDropActivate === 'function') {
235 props.onDropActivate({

Callers

nothing calls this directly

Calls 3

setDropCollectionRefFunction · 0.90
setTargetMethod · 0.80
stopMethod · 0.65

Tested by

no test coverage detected