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

Function setDropCollectionRef

packages/react-aria/src/dnd/utils.ts:397–399  ·  view source on GitHub ↗
(ref?: RefObject<HTMLElement | null>)

Source from the content-addressed store, hash-verified

395}
396
397export function setDropCollectionRef(ref?: RefObject<HTMLElement | null>): void {
398 globalDndState.dropCollectionRef = ref;
399}
400
401export function clearGlobalDnDState(): void {
402 globalDndState = {draggingKeys: new Set()};

Callers 4

getDropOperationForPointFunction · 0.90
onDropExitFunction · 0.90
onDropFunction · 0.90
onDropEnterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected