-
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): data-backdrop="static", data-keyboard="false" not work #568
Comments
It is OK, it should work via option |
Nice! Just saw API |
@valorkin I tried these two, but neither of them works.
|
Since #574 is similar, so I close this issue. |
Hi Guys, How those this fix work ? |
|
$('#myModal').modal({backdrop: 'static', keyboard: false}); |
@component({ openClientModal() { } works for me |
Could you pls share me your source code ? |
@hongbo-miao la respuesta es de la siguiente forma: [config]="{ignoreBackdropClick: true, keyboard: false}"
|
it works @hongbo-miao |
it works after a lot of others. Tks a lot |
In Bootstrap 4, we can disable click outside of bootstrap model area to close modal by adding
data-backdrop="static"
.And
data-keyboard="false"
to prevent close on ESC button.Like this:
However, either of them do not work on ng2-bootstrap modal.
The text was updated successfully, but these errors were encountered: