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

Function select

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

Source from the content-addressed store, hash-verified

582 useImperativeHandle(ref, () => ({
583 ...createFocusableRef(domRef, inputRef),
584 select() {
585 if (inputRef.current) {
586 inputRef.current.select();
587 }
588 },
589 getInputElement() {
590 return inputRef.current;
591 }

Callers

nothing calls this directly

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected