Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal over Modal, can not be removed appropriately #858

Closed
monster-echo opened this issue Apr 15, 2024 · 1 comment
Closed

Modal over Modal, can not be removed appropriately #858

monster-echo opened this issue Apr 15, 2024 · 1 comment

Comments

@monster-echo
Copy link
Contributor

When I have a Modal over another Modal.

The top modal backdrop is not cover the bottom Modal by the z-40.

if I add the top Modal backdrop with z-50 and Modal with z-[60], it's worked.

but when removed the top Modal. it fails, because the the top Modal backdrop is alive and bottom Modal backdrop is destroyed.

document.querySelector('body').append(backdropEl);
this._backdropEl = backdropEl;
}
}
_destroyBackdropEl() {
if (!this._isHidden) {
document.querySelector('[modal-backdrop]').remove();

@zoltanszogyenyi
Copy link
Member

Hey @monster-echo,

Should be fixed via your PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants