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

Function last

packages/react-aria/src/grid/useGridCell.ts:395–405  ·  view source on GitHub ↗
(walker: TreeWalker)

Source from the content-addressed store, hash-verified

393}
394
395function last(walker: TreeWalker) {
396 let next: FocusableElement | null = null;
397 let last: FocusableElement | null = null;
398 do {
399 last = walker.lastChild() as FocusableElement | null;
400 if (last) {
401 next = last;
402 }
403 } while (last);
404 return next;
405}

Callers 2

focusFunction · 0.70
onKeyDownCaptureFunction · 0.70

Calls 1

lastChildMethod · 0.45

Tested by

no test coverage detected