Skip to content

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

@nheath99

Description

@nheath99

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingTriageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions