From 4f234ecb1277d6064e746d5b909b7f132f4ffac6 Mon Sep 17 00:00:00 2001 From: Hiws Date: Thu, 25 Mar 2021 05:03:19 +0100 Subject: [PATCH 1/2] Update method and docs --- src/components/modal/README.md | 53 ++++++++++++++++++++++++++------- src/components/modal/index.d.ts | 2 +- src/components/modal/modal.js | 4 +-- 3 files changed, 45 insertions(+), 14 deletions(-) diff --git a/src/components/modal/README.md b/src/components/modal/README.md index d6cd0cbe3e1..a71b67122e7 100644 --- a/src/components/modal/README.md +++ b/src/components/modal/README.md @@ -81,7 +81,7 @@ several methods, of which two are for showing and hiding modals: | Method | Description | | ------------------------ | -------------------------------------- | | `this.$bvModal.show(id)` | Show the modal with the specified `id` | -| `this.$bvModal.hide(id)` | Hide the modal with the specified `id` | +| `this.$bvModal.hide(id, trigger = "event")` | Hide the modal with the specified `id`, and optionally supply a `trigger` like `ok`. Which will cause the modal to close as if the `OK` button was clicked | Both methods return immediately after being called. @@ -958,24 +958,31 @@ method to generate VNodes.