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

Function select

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected