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

Function onDropEnter

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

Source from the content-addressed store, hash-verified

164 let {dropProps} = useDrop({
165 ref,
166 onDropEnter() {
167 if (localState.nextTarget != null) {
168 state.setTarget(localState.nextTarget);
169 }
170 },
171 onDropMove(e) {
172 if (localState.nextTarget != null) {
173 state.setTarget(localState.nextTarget);

Callers

nothing calls this directly

Calls 8

getTypesFunction · 0.90
setDropCollectionRefFunction · 0.90
isInternalDropOperationFunction · 0.90
nextValidTargetFunction · 0.85
setTargetMethod · 0.80
getDropOperationMethod · 0.80
getItemMethod · 0.65
isSelectedMethod · 0.65

Tested by

no test coverage detected