From cb0ab4e05e173efbc69b5c2a490849f383788e5e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 11 Mar 2024 16:40:04 +0200 Subject: [PATCH] Rename variable --- site/assets/js/snippets.js | 4 ++-- site/content/docs/5.3/examples/cheatsheet/cheatsheet.js | 4 ++-- site/content/docs/5.3/getting-started/javascript.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site/assets/js/snippets.js b/site/assets/js/snippets.js index 55b3f62ec1..e1d282474a 100644 --- a/site/assets/js/snippets.js +++ b/site/assets/js/snippets.js @@ -48,8 +48,8 @@ } // Instantiate all toasts in docs pages only - for (const toastNode of document.querySelectorAll('.bd-example .toast')) { - const toast = new bootstrap.Toast(toastNode, { + for (const toastEl of document.querySelectorAll('.bd-example .toast')) { + const toast = new bootstrap.Toast(toastEl, { autohide: false }) diff --git a/site/content/docs/5.3/examples/cheatsheet/cheatsheet.js b/site/content/docs/5.3/examples/cheatsheet/cheatsheet.js index 165b29c8a3..06daa9f669 100644 --- a/site/content/docs/5.3/examples/cheatsheet/cheatsheet.js +++ b/site/content/docs/5.3/examples/cheatsheet/cheatsheet.js @@ -14,8 +14,8 @@ new bootstrap.Popover(popover) } - for (const toastNode of document.querySelectorAll('.toast')) { - const toast = new bootstrap.Toast(toastNode, { + for (const toastEl of document.querySelectorAll('.toast')) { + const toast = new bootstrap.Toast(toastEl, { autohide: false }) diff --git a/site/content/docs/5.3/getting-started/javascript.md b/site/content/docs/5.3/getting-started/javascript.md index 5513eb7727..bfe8041106 100644 --- a/site/content/docs/5.3/getting-started/javascript.md +++ b/site/content/docs/5.3/getting-started/javascript.md @@ -39,8 +39,8 @@ We provide a version of Bootstrap built as `ESM` (`bootstrap.esm.js` and `bootst ```