MCPcopy Create free account
hub / github.com/react-component/select / scrollIntoView

Function scrollIntoView

src/OptionList.tsx:84–86  ·  view source on GitHub ↗
(args: number | ScrollConfig)

Source from the content-addressed store, hash-verified

82 };
83
84 const scrollIntoView = (args: number | ScrollConfig) => {
85 listRef.current?.scrollTo(typeof args === 'number' ? { index: args } : args);
86 };
87
88 // https://github.com/ant-design/ant-design/issues/34975
89 const isSelected = React.useCallback(

Callers 1

OptionListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…