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

Method focusLast

packages/react-aria/src/focus/FocusScope.tsx:64–64  ·  view source on GitHub ↗

Moves focus to the last focusable or tabbable element in the focus scope.

(opts?: FocusManagerOptions)

Source from the content-addressed store, hash-verified

62 focusFirst(opts?: FocusManagerOptions): FocusableElement | null;
63 /** Moves focus to the last focusable or tabbable element in the focus scope. */
64 focusLast(opts?: FocusManagerOptions): FocusableElement | null;
65}
66
67type ScopeRef = RefObject<Element[] | null> | null;

Callers 1

onKeyDownFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected