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

Loss of modal backdrop when opening second modal #6646

Open
rgbweb opened this issue Mar 22, 2024 · 4 comments
Open

Loss of modal backdrop when opening second modal #6646

rgbweb opened this issue Mar 22, 2024 · 4 comments

Comments

@rgbweb
Copy link

rgbweb commented Mar 22, 2024

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
Copy link

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

@folt3k
Copy link

folt3k commented May 31, 2024

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

@grek-andrian
Copy link

The same issue. Any updates?

@rjs123431
Copy link

Any update on this?

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

No branches or pull requests

6 participants