]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix wording in toasts 'show' doc (#42428)
authorChristian Oliff <christian_oliff@trimble.com>
Fri, 22 May 2026 19:26:48 +0000 (04:26 +0900)
committerGitHub <noreply@github.com>
Fri, 22 May 2026 19:26:48 +0000 (12:26 -0700)
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

index cb6afb9d6f3610f8bafd0399c83bc5fba15ac1e2..9c3ba17931ff13d9728b463a86599b7ae8541a8b 100644 (file)
@@ -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. <br/>`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. |
 </BsTable>
 
 ### Events