[Autocomplete] options list keeps jumping/scrolling back up when disableCloseOnSelect and multiple is set #20388
Closed
2 tasks done
Labels
bug 🐛
Something doesn't work
component: autocomplete
This is the name of the generic UI component, not the React module!
When you have a multi-value autocomplete component and have also set the
disableCloseOnSelect
, a weird jump/scroll back to the first selection occurs.Current Behavior 😯
When
multiple
anddisableCloseOnSelect
are set to true, upon selecting new options in addition to previously selected options the scroll box of the options list will jump/scroll back up to the first selected option.Expected Behavior 🤔
The list's scroll state should remain exactly as is and should not scroll back up upon selection.
Steps to Reproduce 🕹
I went to the Autocomplete demo docs and have forked the multiple-values demo section.
Demo:
Codebox link: https://codesandbox.io/s/material-demo-weo4b
Steps:
disableCloseOnSelect
to one of the autocomplete fieldsThe text was updated successfully, but these errors were encountered: