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

Method focusFirst

packages/react-aria/src/focus/FocusScope.tsx:62–62  ·  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

60 focusPrevious(opts?: FocusManagerOptions): FocusableElement | null;
61 /** Moves focus to the first focusable or tabbable element in the focus scope. */
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}

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