Skip to content
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

[AutoComplete] Vistual List scroll position reset to top when Options update #34732

Closed
2 tasks done
Acring opened this issue Oct 12, 2022 · 1 comment
Closed
2 tasks done
Assignees
Labels
component: autocomplete This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@Acring
Copy link

Acring commented Oct 12, 2022

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Steps:
demo: https://codesandbox.io/s/divine-wave-mqjvl0?file=/demo.tsx

  1. scroll the list to bottom
  2. wait for 5s
  3. see scroll list reset to top

Current behavior 😯

the list scroll top was reset.

Expected behavior 🤔

keep the scroll position of list.

Context 🔦

Goto OuterElementType function and try to add role="none" in div can fix this bug. but absolutely we shouldn't remove role="listbox",I wonder if this is a bug and how can I resolve the problem.

Your environment 🌎

See sandbox.

@Acring Acring added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 12, 2022
@Acring Acring changed the title [AutoComplete] Vistual List [AutoComplete] Vistual List scroll position reset to top when Options update Oct 12, 2022
@michaldudak michaldudak self-assigned this Oct 12, 2022
@michaldudak michaldudak added the component: autocomplete This is the name of the generic UI component, not the React module! label Oct 12, 2022
@michaldudak
Copy link
Member

Duplicate of #30249

@michaldudak michaldudak marked this as a duplicate of #30249 Oct 14, 2022
@github-actions github-actions bot added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Oct 14, 2022
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants