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

Function select

packages/@react-spectrum/s2/src/ColorField.tsx:93–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 useImperativeHandle(ref, () => ({
92 ...createFocusableRef(domRef, inputRef),
93 select() {
94 if (inputRef.current) {
95 inputRef.current.select();
96 }
97 },
98 getInputElement() {
99 return inputRef.current;
100 }

Callers

nothing calls this directly

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected