Modal icon indicating copy to clipboard operation
Modal copied to clipboard

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

Open nheath99 opened this issue 6 months ago • 0 comments

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 avatar Aug 22 '24 09:08 nheath99