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 drop down does not check for room under it on first render. #2918

Closed
FredrikMWold opened this issue Jun 19, 2023 · 2 comments
Closed
Labels
🐛 bug Something isn't working

Comments

@FredrikMWold
Copy link
Contributor

Describe the bug

When using the Autocomplete component on small screens/windows the position of the drop down does not position it self correctly.
To get it to position itself the user first has to open it scroll down and up again, after that the positioning is correct. If the user refreshed the page the problem reoccurs.

Steps to reproduce the bug

  1. Position an autocomplete component so that it is at the bottom of the screen on refresh.
  2. Refresh page.
  3. Click on autocomplete.

Expected behavior

Expect the drop down menu to position itself at "top-start" when there is not enough room under it.

Specifications

  • Version: 0.31.1
  • Browser: Chrome Version 114.0.5735.106
  • OS: Ubuntu 22.04

Additional context

Autocomplete bug demonstration

@FredrikMWold FredrikMWold added the 🐛 bug Something isn't working label Jun 19, 2023
@oddvernes
Copy link
Collaborator

oddvernes commented Jun 23, 2023

I believe this was serendipitously fixed by the latest update of floating-ui. Storybook-dev (up to date) storybook prod (not updated)
We will make a new release soon after a couple more bugs that needs to be looked into 👍

@FredrikMWold
Copy link
Contributor Author

Fixed in 0.32.2

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

No branches or pull requests

2 participants