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

Function select

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected