valor-software / ngx-bootstrap

Fast and reliable Bootstrap widgets in Angular (supports Ivy engine)
https://valor-software.com/ngx-bootstrap
MIT License
5.52k stars 1.69k forks source link

Loss of modal backdrop when opening second modal #6646

Open rgbweb opened 4 months ago

rgbweb commented 4 months ago

Bug description:

When opening a second modal immediately after closing the first one, the modal backdrop disappears after a short flickering when the second modal is opened. This issue has been observed since version 10.0.0 and is independent of the Angular version. The problem was introduced by a change made with a pull pequest in October 2022 (#6518). I could narrow it down to the line change in "bs-modal.service.ts": See the commit

Here is a StackBlitz that reproduces the issue: https://stackblitz.com/edit/clkau7?file=src%2Fapp%2Fapp.component.ts

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 10.0.0 (and onwards)

Angular: not relevent

Bootstrap: not relevent

Expected behavior:

The modal backdrop should remain stable and visible even when opening a second modal immediately after closing the first one.

Additional Information:

There is another open issue which was caused by the same PR: #6608

Thank you for your attention and support in addressing this issue.

liuyankit commented 2 months ago

same issue happen to me on the latest version Screenshot 2024-05-09 at 9 54 26 AM

folt3k commented 1 month ago

I have the same problem. Backdrop is not visible after close modal and open new one right after.

grek-andrian commented 1 month ago

The same issue. Any updates?