diff options
| author | Giovanni Mendoza <[email protected]> | 2020-01-10 03:06:12 -0600 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2020-01-10 11:06:12 +0200 |
| commit | 954a0b1e6a206e4df910d4799d013f4388a2ef40 (patch) | |
| tree | 59e1d72bc0452427421b7f856d57eeecd48b6b5e /site/content/docs | |
| parent | 4e1fb4fe1a4e968d83d8f62007b9354e2811eb63 (diff) | |
| download | bootstrap-954a0b1e6a206e4df910d4799d013f4388a2ef40.tar.xz bootstrap-954a0b1e6a206e4df910d4799d013f4388a2ef40.zip | |
Close modal with keyboard=true & backdrop=static (#29986)
* Close modal with keyboard=true & backdrop=static
Diffstat (limited to 'site/content/docs')
| -rw-r--r-- | site/content/docs/4.3/components/modal.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/site/content/docs/4.3/components/modal.md b/site/content/docs/4.3/components/modal.md index 15a3eeabf..6571a5ce4 100644 --- a/site/content/docs/4.3/components/modal.md +++ b/site/content/docs/4.3/components/modal.md @@ -144,7 +144,7 @@ Toggle a working modal demo by clicking the button below. It will slide down and When backdrop is set to static, the modal will not close when clicking outside it. Click the button below to try it. -<div id="staticBackdropLive" class="modal fade" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLiveLabel" aria-hidden="true"> +<div id="staticBackdropLive" class="modal fade" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLiveLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> @@ -177,7 +177,7 @@ When backdrop is set to static, the modal will not close when clicking outside i </button> <!-- Modal --> -<div class="modal fade" id="staticBackdrop" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true"> +<div class="modal fade" id="staticBackdrop" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> @@ -810,7 +810,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <td>backdrop</td> <td>boolean or the string <code>'static'</code></td> <td>true</td> - <td>Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click or on escape key press.</td> + <td>Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.</td> </tr> <tr> <td>keyboard</td> @@ -918,7 +918,7 @@ Bootstrap's modal class exposes a few events for hooking into modal functionalit </tr> <tr> <td>hidePrevented.bs.modal</td> - <td>This event is fired when the modal is shown, its backdrop is <code>static</code> and a click outside the modal or an escape key press is performed.</td> + <td>This event is fired when the modal is shown, its backdrop is <code>static</code> and a click outside the modal or an escape key press is performed with the keyboard option or <code>data-keyboard</code> set to <code>false</code>.</td> </tr> </tbody> </table> |
