Open KartheekJavvaji opened 1 year ago
Can this issue be assigned to me, I am interested in working here...
@nandini584 I have already raised a PR for fixing this issue. You can take a look at it for initial analysis.
I am still waiting for @mj12albert for his review on the strategy used in the fix.
Ohk sure will have a look.
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/mui-scroll-reset-issue-cpvj7v?file=/Demo.tsx
Steps:
https://github.com/mui/material-ui/assets/12635717/e06eef9d-e686-4052-b15c-bd74ca75cf63
Current behavior 😯
The scroll gets reset after any selection with above mentioned 3 properties sent as true.
Expected behavior 🤔
The scroll should not get reset as in case of a long list this will be difficult for the end-user to select multiple options.
It will be helpful if we control this behavior either by introducing a new prop or by reusing
filterSelectedOptions
boolean near the place where highlighting of the option happens.Context 🔦
No response
Your environment 🌎
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo