My challenge is to include a modal within another modal, but the height of the first modal is much greater than that of the second one. This causes an issue where the second modal can be scrolled below it and end up scrolling on the first modal's content instead.
I am seeking a solution to either prevent the scrolling beyond the boundaries of the second modal or adjust its height without affecting the content of the first modal. I attempted setting the overflow of the first modal to hidden to stop scrolling movement, but it still allows scrolling through the extended height.
What would be the most effective approach in dealing with this situation?