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

Function focus

packages/@react-spectrum/ai/src/useDOMRef.ts:33–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 return {
32 ...createDOMRef(domRef),
33 focus() {
34 if (resolvedFocusableRef.current) {
35 resolvedFocusableRef.current.focus();
36 }
37 }
38 };
39}
40

Callers

nothing calls this directly

Calls 1

focusMethod · 0.80

Tested by

no test coverage detected