Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jagdishlove/164b618c78060557a282779dedaa6ecf to your computer and use it in GitHub Desktop.
Save jagdishlove/164b618c78060557a282779dedaa6ecf to your computer and use it in GitHub Desktop.
Multi-select scrolls to top after selecting
Please use useCallback with MenuList. That will work.
const MenuList = useCallback((props: any) => {
return (
<components.MenuList {...props}>{props.children}</components.MenuList>
</Fragment>
);
}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment