diff --git a/apps/docs/src/docs/components/modal.md b/apps/docs/src/docs/components/modal.md index e65f8b5e1..9f19cb3b9 100644 --- a/apps/docs/src/docs/components/modal.md +++ b/apps/docs/src/docs/components/modal.md @@ -174,6 +174,10 @@ Feel free to mix vertically `centered` with `scrollable`.

Third Modal

+ Open Fouth Modal +
+ +

Fourth Modal

@@ -200,7 +208,27 @@ Feel free to mix vertically `centered` with `scrollable`. const nestedModal1 = ref(false) const nestedModal2 = ref(false) const nestedModal3 = ref(false) +const nestedModal4 = ref(false) + ``` @@ -240,4 +268,22 @@ const preventFn = (e: Event) => { const nestedModal1 = ref(false) const nestedModal2 = ref(false) const nestedModal3 = ref(false) +const nestedModal4 = ref(false) + + diff --git a/packages/bootstrap-vue-next/src/components/BModal/BModal.vue b/packages/bootstrap-vue-next/src/components/BModal/BModal.vue index e542377d9..fda0c3c7b 100644 --- a/packages/bootstrap-vue-next/src/components/BModal/BModal.vue +++ b/packages/bootstrap-vue-next/src/components/BModal/BModal.vue @@ -15,6 +15,7 @@ { fade: !computedNoAnimation, show: isVisible, + ...sharedClasses, }, ]" role="dialog" @@ -24,7 +25,7 @@ v-bind="$attrs" :style="computedZIndex" style="display: block" - @mousedown.self="hide('backdrop')" + @mousedown.left.self="hide('backdrop')" >