You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scrolling to the bottom, the Select uses lazy load to add new pages of options.
Scrolling position is maintained as each new set is added.
However if you actually choose and option first (e.g.) one of the initial ones, such as "Black" and then scroll to the bottom [using the mouse], the list will "jump" back to the selected item with every new page load.
Expected behaviour
I would expect it to consistently maintain scroll position and not jump the length of the list with every new page load.
jamime
changed the title
Select (with lazy load)'s scrolling behaves erratically when an item is selected
Select with lazy load scrolls back to previous item when new items are added
Jul 27, 2021
Current behaviour
You can recreate this on the infinite scroll example:
https://carbon.sage.com/?path=/story/design-system-select--with-infinite-scroll
When scrolling to the bottom, the Select uses lazy load to add new pages of options.
Scrolling position is maintained as each new set is added.
However if you actually choose and option first (e.g.) one of the initial ones, such as "Black" and then scroll to the bottom [using the mouse], the list will "jump" back to the selected item with every new page load.
Expected behaviour
I would expect it to consistently maintain scroll position and not jump the length of the list with every new page load.
CodeSandbox or Storybook URL
https://carbon.sage.com/?path=/story/design-system-select--with-infinite-scroll
Suggested Solution
Suggestion would be to maintain the same behaviour as when the Select has no item selected initially.
Carbon Version
77.12.0
What browsers are you seeing the problem on?
Chrome
What Operating System are you seeing the problem on?
Windows
Anything else we should know?
Confidentiality
The text was updated successfully, but these errors were encountered: