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 automatically scrolls to top after searching for option and selecting it. #2387

Closed
awallemo opened this issue Jul 18, 2022 · 3 comments · Fixed by #2545
Closed
Assignees
Labels
🐛 bug Something isn't working core-react eds-core-react

Comments

@awallemo
Copy link

Autocomplete automatically scrolls to top after searching for option and selecting it.

I have noticed that after searching within the Autocomplete input and choosing an option the Autocomplete scrolls automatically back to the top.

Steps to reproduce the bug

  1. Open an Autocomplete component
  2. Search for one of the options
  3. Click one of the options that appear
    4.The Autocomplete automatically unfilters from your search and scrolls back to top

Expected behavior

After clicking one of the options that appear from searching, I would expect that the options shown would persist so that I could choose other similar options as well.

Specifications

  • Version: 0.20.4
  • Browser: Edge
  • OS: Windows 10 pro

Additional context

Autocomplete.bug.mp4
@awallemo awallemo added the 🐛 bug Something isn't working label Jul 18, 2022
@mimarz
Copy link
Contributor

mimarz commented Jul 25, 2022

Thanks for reporting this!
I can see how this is annoying. I've prioritised it up to "todo" so someone should have a look at it in not to long :)

@mimarz
Copy link
Contributor

mimarz commented Aug 15, 2022

Looks like we need to enable this feature in downshift for this: https://github.com/downshift-js/downshift#scrollintoview

@mimarz mimarz self-assigned this Sep 28, 2022
@mimarz mimarz added the core-react eds-core-react label Sep 28, 2022
@mimarz
Copy link
Contributor

mimarz commented Sep 29, 2022

Hey @awallemo !

Do you have a moment to show us this in your application? We were not able to reproduce this behaviour...

I was able to reproduce wanted behaviour, which is persist search term after selection when multiple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working core-react eds-core-react
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants