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

Function onDropEnter

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

Source from the content-addressed store, hash-verified

166 let {dropProps} = useDrop({
167 ref,
168 onDropEnter() {
169 if (localState.nextTarget != null) {
170 state.setTarget(localState.nextTarget);
171 }
172 },
173 onDropMove(e) {
174 if (localState.nextTarget != null) {
175 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