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

Scroll option into view while using portals #5663

Open
pmorim opened this issue Jun 7, 2023 · 0 comments
Open

Scroll option into view while using portals #5663

pmorim opened this issue Jun 7, 2023 · 0 comments
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@pmorim
Copy link

pmorim commented Jun 7, 2023

Description

I've stumbled upon a bug where the "scroll option into view" feature does not work for portaled menus.
Although, it seems to work fine for non-portaled menus.

Affected Versions

I've found this issue to have been introduced in v4, and it is still present in v5.

Screen recording

a gif of the bug

How to reproduce the bug

  • Open the official docs
    • The same can be reproduced on the Storybook
  • Navigate to Advanced > Portaling
  • Open the Modal and its inner Menu
  • Scroll down and pick an option that is outside of the initial scroll position
    • The last option for example - Silver
  • Close the menu and open it again
  • The menu will not scroll back to the selected option

What is the expected behavior

The menu should scroll back to the selected option

Notes

I have taken a look into the code and did not manage to find the issue. I wouldn't mind doing the PR myself if anyone can manage to point me in the right direction.

@pmorim pmorim added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

No branches or pull requests

1 participant