Skip to content

Commit

Permalink
Fix modals
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored and mdo committed May 26, 2022
1 parent ab68873 commit ec79b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/assets/js/snippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
// -------------------------------
// Modal
// -------------------------------
// Modal relatedTarget demo
// Modal 'Varying modal content' example in docs and StackBlitz
const exampleModal = document.getElementById('exampleModal')
if (exampleModal) {
exampleModal.addEventListener('show.bs.modal', event => {
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.2/components/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ Have a bunch of buttons that all trigger the same modal with slightly different

Below is a live demo followed by example HTML and JavaScript. For more information, [read the modal events docs](#events) for details on `relatedTarget`.

{{< example >}}
{{< example js_snippet="true" >}}
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" data-bs-whatever="@mdo">Open modal for @mdo</button>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" data-bs-whatever="@fat">Open modal for @fat</button>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" data-bs-whatever="@getbootstrap">Open modal for @getbootstrap</button>
Expand Down

0 comments on commit ec79b13

Please sign in to comment.