MCPcopy Index your code
hub / github.com/adobe/react-spectrum / select

Function select

packages/@react-spectrum/s2/src/SearchField.tsx:84–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82 useImperativeHandle(ref, () => ({
83 ...createFocusableRef(domRef, inputRef),
84 select() {
85 if (inputRef.current) {
86 inputRef.current.select();
87 }
88 },
89 getInputElement() {
90 return inputRef.current;
91 }

Callers

nothing calls this directly

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected