Issues with popover inside modal
Created by: praveenpuglia
On the docs page for modals, there are some weird issues with the modal.
To reproduce the issues, go to that docs page and scroll to Live Demo section. Click on Launch demo modal.
This modal has a popover inside it which triggers upon clicking. Now.
- Upon triggering the popover, the page in background is scrolled to top. I would expect it to just show the popover and the background page to stay where it is. I agree that it goes back to the correct scroll position after the modal is closed and focuses on the modal trigger but I wish it didn't scroll the entire page when the popover was opened inside it.
- If I close the modal with the popover open, the modal get's destroyed but not the popover and it weirdly sticks on the top left corner of the screen as seen in the following screenshot.