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

Function onDropExit

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

setDropCollectionRefFunction · 0.90
setTargetMethod · 0.80
stopMethod · 0.80

Tested by

no test coverage detected