MCPcopy
hub / github.com/adobe/react-spectrum / last

Function last

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

Source from the content-addressed store, hash-verified

319}
320
321function last(walker: TreeWalker) {
322 let next: FocusableElement | null = null;
323 let last: FocusableElement | null = null;
324 do {
325 last = walker.lastChild() as FocusableElement | null;
326 if (last) {
327 next = last;
328 }
329 } while (last);
330 return next;
331}

Callers 2

focusFunction · 0.70
onKeyDownCaptureFunction · 0.70

Calls 1

lastChildMethod · 0.45

Tested by

no test coverage detected