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

[Bug] Original modal scrolls to top when closing a child modal #587

Open
nheath99 opened this issue Aug 22, 2024 · 0 comments
Open

[Bug] Original modal scrolls to top when closing a child modal #587

nheath99 opened this issue Aug 22, 2024 · 0 comments
Labels
Bug Something isn't working Triage Issue needs to be triaged

Comments

@nheath99
Copy link

Describe the bug
I have a modal dialog (main) where the user can also open additional (child) modal dialogs. The main modal can scroll off the bottom of the screen. When the user closes a child modal the main modal immediately scrolls to the top.

To Reproduce
Steps to reproduce the behavior:

  1. Create and show a modal that has has content that causes the height of it to be larger than the screen height (main)
  2. Scroll down
  3. Inside the main modal, create and show another modal (child)
  4. Close the child modal
  5. Observe that the main modal has scrolled to the top

Expected behavior
The main modal should maintain it's original scroll position.

@nheath99 nheath99 added Bug Something isn't working Triage Issue needs to be triaged labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant