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

Method focusFirst

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

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

(opts?: FocusManagerOptions)

Source from the content-addressed store, hash-verified

76 focusPrevious(opts?: FocusManagerOptions): FocusableElement | null;
77 /** Moves focus to the first focusable or tabbable element in the focus scope. */
78 focusFirst(opts?: FocusManagerOptions): FocusableElement | null;
79 /** Moves focus to the last focusable or tabbable element in the focus scope. */
80 focusLast(opts?: FocusManagerOptions): FocusableElement | null;
81}

Callers 6

onKeyDownFunction · 0.80
useDateRangePickerFunction · 0.80
useDateFieldFunction · 0.80
focusFunction · 0.80
useDatePickerFunction · 0.80
focusFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected