-
Notifications
You must be signed in to change notification settings - Fork 1.7k
backdrop issue with nested modals #6686
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
Comments
Experiencing the same, only difference is that we are using Angular 18.1.0 |
I can confirm I have the same issue. I am on ngx-bootstrap 18.0.2, angular 18.2.5. Any workaround would be appreciated if available. |
Same here |
same issue |
I solved it this way for now, and it seems to be working. openModal( removeCustomBackdrop() { |
Hi. Today was introduced version 18.1.0 and fix for this was a part of it. Thanks for reporting! |
Uh oh!
There was an error while loading. Please reload this page.
Bug description:
When working with nested modals, the backdrop disappears when the first modal is hidden, even though there are still modals open. Following disappears in the html, thus the background blurring is lost:
<bs-modal-backdrop class="modal-backdrop fade show"></bs-modal-backdrop>
The issue is actually visible in the demo of the current ngx-bootstrap version: https://valor-software.com/ngx-bootstrap/#/components/modals#service-nested: Open first modal -> Open second modal -> Close self / Close first modal (in either case)
I tried a manual workaround counting levels of modals and calling
this.bsModalService._showBackdrop();
in case there are still modals open, but that does not work.Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: 18.0.2
Angular: 18.2.0
Bootstrap: 5.3.3
Build system: Angular CLI
Expected behavior
I expect the backdrop to remain until the last modal ist hidden.
The text was updated successfully, but these errors were encountered: