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>
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.
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.