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

Function select

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

selectMethod · 0.65

Tested by

no test coverage detected