-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
bug(modal): if backdrop === 'static' outside click should not close modal #574
Comments
oh, thanks! my bad, I forgot to add check here:
and options values should be added to docs (from original bs docs) Nice reason to make PR :) |
Thanks! Sent from my iPhone
|
Since this is an easy fix, based on the effort tag, is it possible to expedite it? |
Also, the code is supposed to be: |
Hi, What's the solution for this bug ? |
@calvinKG - Bug has been fixed, update you version to get the fix. |
hi, can you please help me with that |
@eRez-ebs - So I am also using 1.0.17. So just passing data-backdrop won't work since that only works for the bootstrap version. To get it to work with this library you have to pass it via the config input like so:
|
@mpetkov thanks for the quick reply. |
@mpetkov am also exprinceing the same problem. "ng2-bootstrap": "^1.0.17", thats the version that am using. |
i found out why it didn't work for me.
doesn't look much like the file here - https://github.com/valor-software/ng2-bootstrap/blob/development/components/modal/modal.component.ts#L79 anyhow, it explains why the onClick fails but the onEsc works. eRez |
How are we going to implement this updates ? |
|
Provided I'm doing this correctly, I've set the modal's config to:
<div bimodal #myModal="bs-modal" class="modal fade" [config]="{ keyboard: false, backdrop: false }" aria-labelledby="myLargeModalLabel" aria-hidden="true"> ... </div>
However this does not prevent the modal from closing when clicking outside of the modal.
The text was updated successfully, but these errors were encountered: