preline
preline copied to clipboard
Stacked Overlays issue on Example page
When I open the 2nd Modal, the 1st Modal is still on top of the 2nd Modal. I have to turn off the 1st Modal to see the 2nd Modal.
also how do i disable the close on esc for the 1st modal when 2nd modal is opened? cos currently when i stack modals and press escaped it closes.
const secondOverlay = HSOverlay.getInstance(
document.querySelector('#second-overlay'),
true
);
const element = (secondOverlay as any).element;
element.isClosePrev = false;
element.open();
When I open the 2nd Modal, the 1st Modal is still on top of the 2nd Modal. I have to turn off the 1st Modal to see the 2nd Modal.
![]()
![]()
The z-index of the first element was wrong, it should be 60, instead of 80. This will solve the problem
Hey @hieuhuynh93 - it's been fixed, thanks for reporting!