Skip to content

Commit 5ed99b6

Browse files
authored
chore(docs): minor updates to the modal message box docs
1 parent f02e121 commit 5ed99b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/modal/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -930,10 +930,11 @@ Example Confirm Message boxes
930930
by default. You can enable the header close button by setting `hideHeaderClose: false` in the
931931
options.
932932
- Message Boxes will throw an error (promise rejection) if they are closed/destroyed before they are
933-
hidden. Always include a `.catch(error => { /* handler code */ })` reject handler, event if using
933+
hidden. Always include a `.catch(errHandler)` reject handler, event if using
934934
the async `await` style code.
935935
- When using Vue Router (or similar), Message Boxes will close and reject if the route changes
936-
before the modal hides.
936+
before the modal hides. If you wish for the message box to remain open when the route changes, use
937+
`this.$root.$bvModal` instead of `this.$bvModal`.
937938
- Message boxes cannot be generated during Server Side Rendering (SSR).
938939
- The Message Box `message` currently does not support HTML strings, however, you can pass an
939940
_array_ of `VNodes` as the `message` for fine grained control of the markup. You can use Vue's

0 commit comments

Comments
 (0)