From 5d090506e780319dca1085eba786395c3c904041 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Fri, 22 May 2026 09:46:45 +0900 Subject: [PATCH] Fix wording in toasts 'show' doc Correct a grammatical error in the toasts documentation: replaced "instead" with "or" in the description of the `show` method to improve clarity (site/src/content/docs/components/toasts.mdx). --- site/src/content/docs/components/toasts.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/content/docs/components/toasts.mdx b/site/src/content/docs/components/toasts.mdx index cb6afb9d6f36..9c3ba17931ff 100644 --- a/site/src/content/docs/components/toasts.mdx +++ b/site/src/content/docs/components/toasts.mdx @@ -341,7 +341,7 @@ const toastList = [...toastElList].map(toastEl => new bootstrap.Toast(toastEl, o | `getOrCreateInstance` | *Static* method which allows you to get the toast instance associated with a DOM element, or create a new one, in case it wasn’t initialized.
`const myToastEl = document.getElementById('myToastEl')` `const myToast = bootstrap.Toast.getOrCreateInstance(myToastEl)` Returns a Bootstrap toast instance. | | `hide` | Hides an element’s toast. **Returns to the caller before the toast has actually been hidden** (i.e. before the `hidden.bs.toast` event occurs). You have to manually call this method if you made `autohide` to `false`. | | `isShown` | Returns a boolean according to toast’s visibility state. | -| `show` | Reveals an element’s toast. **Returns to the caller before the toast has actually been shown** (i.e. before the `shown.bs.toast` event occurs). You have to manually call this method, instead your toast won’t show. | +| `show` | Reveals an element’s toast. **Returns to the caller before the toast has actually been shown** (i.e. before the `shown.bs.toast` event occurs). You have to manually call this method, or your toast won’t show. | ### Events