Modal
Modal copied to clipboard
[Bug] Original modal scrolls to top when closing a child modal
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:
- Create and show a modal that has has content that causes the height of it to be larger than the screen height (main)
- Scroll down
- Inside the main modal, create and show another modal (child)
- Close the child modal
- Observe that the main modal has scrolled to the top
Expected behavior The main modal should maintain it's original scroll position.