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

UISelect: when using multiple & keys props list gets scrolled to top after select #437

Open
plakak opened this issue Feb 19, 2019 · 1 comment · May be fixed by #439
Open

UISelect: when using multiple & keys props list gets scrolled to top after select #437

plakak opened this issue Feb 19, 2019 · 1 comment · May be fixed by #439
Labels

Comments

@plakak
Copy link
Contributor

plakak commented Feb 19, 2019

After selecting an item when using multiple and keys props togheter, scroll always gets back to the top.

Steps:

  1. Open https://codesandbox.io/s/9422p2l53p
  2. Open select and scroll to some bottom item.
  3. Click to mark as selected.
  4. Scroll returns to the top.
@JosephusPaye
Copy link
Owner

JosephusPaye commented Feb 21, 2019

Thanks for the report, can confirm.

Need to investigate more, but on cursory look, it seems like the filteredOptions computed property is recomputed when an option is selected, which causes the list's scroll to reset and return to the top.

@plakak plakak linked a pull request Mar 5, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants