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

Function focus

packages/@adobe/react-spectrum/src/datepicker/utils.tsx:87–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 useImperativeHandle(ref, () => ({
86 ...createDOMRef(domRef),
87 focus() {
88 createFocusManager(domRef).focusFirst({tabbable: true});
89 }
90 }));
91 return domRef;
92}

Callers

nothing calls this directly

Calls 2

createFocusManagerFunction · 0.90
focusFirstMethod · 0.80

Tested by

no test coverage detected