malte-wessel / react-custom-scrollbars

React scrollbars component
http://malte-wessel.github.io/react-custom-scrollbars/
MIT License
3.2k stars 577 forks source link

Integration with Material-UI's autocomplete #396

Open WilsonPhooYK opened 3 years ago

WilsonPhooYK commented 3 years ago

Does anyone have success integrating this with Material-UI's autocomplete?

This is my code currently and the arrow keys don't work.


const ListComponent = forwardRef((props, ref) => {
  const { children, ...comProps } = props;

  return (
    <Scrollbars
      {...comProps}
      ref={(node) => ref(node?.container)}
      autoHeight
      autoHeightMin={0}
      autoHeightMax={500}
    >
      {children}
    </Scrollbars>
  );
});