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

cds-dropdown should scroll with parent viewport #271

Open
3 of 8 tasks
squidjam opened this issue Sep 1, 2023 · 2 comments
Open
3 of 8 tasks

cds-dropdown should scroll with parent viewport #271

squidjam opened this issue Sep 1, 2023 · 2 comments

Comments

@squidjam
Copy link

squidjam commented Sep 1, 2023

Describe the bug

cds-dropdown seems to be fixed in the first area where it shows, rather than scrolling with the anchor or the surrounding viewport.

How to reproduce

Just try it in the documentation, you'll see it

Steps to reproduce the behavior:

  1. Create a big enough container where the anchor can be scrolled up/down (height: 100rem ?)
  2. Click on button to open dropdown
  3. Dropdown appears
  4. Scroll
  5. See error

Expected behavior

cds-dropdown contents should scroll alongside the anchor element or the viewport containing it

Versions

Clarity project:

  • Clarity Core
  • Clarity Angular/UI

Clarity version:

  • v5.x
  • v6.x

Framework:

  • Angular
  • React
  • Vue
  • Other: irrelevant

Framework version:

Device:

Additional notes

Submitted this as a Discussion item, but no response. Now that the component is out, I prefer to submit a bug report.

@squidjam
Copy link
Author

plink

@squidjam
Copy link
Author

Plink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant