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

fix: scrolling dropdown items into view #6912

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

BeksOmega
Copy link
Collaborator

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #4465

Proposed Changes

Makes it so that dropdowns actually scroll to the selected element.

Reason for Changes

Setting the highlight would normally scroll the menu. However, when a menu is in the dropdown div, it isn't actually scrollable. The dropdown div /content/ is scrollable. So we need to trigger a scroll of that separately.

Test Coverage

Just manual testing.

Documentation

N/A

Additional Information

N/A

@BeksOmega BeksOmega requested a review from a team as a code owner March 20, 2023 19:59
@BeksOmega BeksOmega requested a review from gonfunko March 20, 2023 19:59
@github-actions github-actions bot added the PR: fix Fixes a bug label Mar 20, 2023
@BeksOmega BeksOmega merged commit 252b204 into google:develop Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdown with long list of variables does not scroll to selected variable
2 participants