From: Christian Oliff Date: Fri, 22 May 2026 19:26:48 +0000 (+0900) Subject: Fix wording in toasts 'show' doc (#42428) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5693ab7e1b578b44e878d24ab479a650cb545caf;p=thirdparty%2Fbootstrap.git Fix wording in toasts 'show' doc (#42428) 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). --- diff --git a/site/src/content/docs/components/toasts.mdx b/site/src/content/docs/components/toasts.mdx index cb6afb9d6f..9c3ba17931 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