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

Function select

packages/@react-spectrum/s2/src/NumberField.tsx:207–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 useImperativeHandle(ref, () => ({
206 ...createFocusableRef(domRef, inputRef),
207 select() {
208 if (inputRef.current) {
209 inputRef.current.select();
210 }
211 },
212 getInputElement() {
213 return inputRef.current;
214 }

Callers

nothing calls this directly

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected