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

Function select

packages/@react-spectrum/s2/src/ComboBox.tsx:571–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

569 useImperativeHandle(ref, () => ({
570 ...createFocusableRef(domRef, inputRef),
571 select() {
572 if (inputRef.current) {
573 inputRef.current.select();
574 }
575 },
576 getInputElement() {
577 return inputRef.current;
578 }

Callers

nothing calls this directly

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected