ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Loss of modal backdrop when opening second modal

Open rgbweb opened this issue 1 year ago • 5 comments

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.

rgbweb avatar Mar 22 '24 16:03 rgbweb

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

liuyankit avatar May 09 '24 12:05 liuyankit

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

folt3k avatar May 31 '24 10:05 folt3k

The same issue. Any updates?

grek-andrian avatar Jun 12 '24 13:06 grek-andrian

Any update on this?

rjs123431 avatar Sep 18 '24 12:09 rjs123431