-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix jarring auto scroll on multi select when selecting a variable at the bottom of the list #1107
Comments
This seems to be an issue with material UI that remains even after their fixes. See |
Hi @Incin have you found a solution. Thank you |
Hi @Incin my solution is just to add ListBoxComponent interface CustomListboxComponentProps {
children?: React.ReactNode;
[x: string]: any;
}
const CustomListboxComponent = forwardRef<
HTMLUListElement,
CustomListboxComponentProps
>((props, ref) => {
const { children, ...other } = props;
return (
<Box maxHeight="200px" overflow="auto">
<ul ref={ref} {...other}>
{children}
</ul>
</Box>
);
}); and use it in Autocomplete props ListboxComponent={CustomListboxComponent} |
Hey @ezalorsara I quickly attempted your fix and the problem still seems to remain. Due to time constraints right now, I haven't had a chance to investigate this further. If you find another solution, feel free to make a pr, you can use hygen new component to create a new component that follows the other component's design, and @hafen and I can take a look. Thanks! |
No description provided.
The text was updated successfully, but these errors were encountered: