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

Auro Select: when changing breakpoints from large to small, the select dropdown position is off screen in Chrome, Edge and Firefox browsers #225

Closed
mlilli opened this issue Dec 16, 2024 · 1 comment · Fixed by #228
Assignees
Labels
auro-select Type: Bug Bug or Bug fixes

Comments

@mlilli
Copy link

mlilli commented Dec 16, 2024

Describe the bug

When starting in a large breakpoint (i.e. desktop) and switching to a smaller breakpoint that causes significant layout change (main menu is collapsed) then opening a select menu, the dropdown / popover is positioned off screen. Scrolling or closing/reopening the select fixes the position.

To Reproduce

Steps to reproduce the behavior:

  • Go here in Chrome, Firefox or Edge browser in a large breakpoint (i.e. desktop, >= 1024px)
  • Open dev tools and switch to a small breakpoint (i.e. any small breakpoint <= 575px, such as iPhone SE)
  • Click on any select menu.
  • See error

Expected behavior

The dropdown should be fully on screen and anchored to the opener / trigger.

Screenshots

Screenshot 2024-12-13 at 11 39 16 AM Screenshot 2024-12-12 at 3 58 27 PM

Desktop (please complete the following information):

  • OS: Windows and macOS
  • Browser: Chrome, Edge and Firefox
  • Version: all

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser N/A
  • Version N/A

Additional context

This affects an alaskaair.com PR with the latest (patched) versions of auro-select (v3.3.1), auro-dropdown (v3.2.1) and auro-menu (v.4.2.0), when switching to <= 767px.

Repo: https://github.com/Alaska-ECommerce/flightsearch-lem-svelte/
PR: https://github.com/Alaska-ECommerce/flightsearch-lem-svelte/pull/2441

@mlilli mlilli added auro-select not-reviewed Issue has not been reviewed by Auro team members Type: Bug Bug or Bug fixes labels Dec 16, 2024
@mlilli mlilli changed the title Auro Select: when changing breakpoints in dev tools, the select dropdown position is off screen in Chrome, Edge and Firefox browsers Auro Select: when changing breakpoints from large to small, the select dropdown position is off screen in Chrome, Edge and Firefox browsers Dec 16, 2024
@Patrick-Daly-AA Patrick-Daly-AA removed the not-reviewed Issue has not been reviewed by Auro team members label Dec 17, 2024
@rmenner rmenner linked a pull request Dec 17, 2024 that will close this issue
6 tasks
blackfalcon pushed a commit that referenced this issue Dec 19, 2024
## [3.3.2](v3.3.1...v3.3.2) (2024-12-19)

### Bug Fixes

* force dropdown bib min-width to not expand outside container [#225](#225) ([b59abbe](b59abbe))
* update overflow property ([6f0939c](6f0939c))
@jordanjones243
Copy link
Contributor

Issue will be fixed by this PR and a version bump will be required:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auro-select Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants