Skip to content

Commit f8b83dc

Browse files
committed
fix(BModal): fixes the visibility issue where having more than one modal will overlap each other
1 parent ddcf11b commit f8b83dc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/bootstrap-vue-3/src/components/BModal.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
role="dialog"
1919
:aria-labelledby="`${computedId}-label`"
2020
:aria-describedby="`${computedId}-body`"
21-
:style="{display: 'block'}"
2221
tabindex="-1"
2322
v-bind="$attrs"
2423
@keyup.esc="onEsc"
@@ -101,9 +100,9 @@
101100
<script setup lang="ts">
102101
// import type {BModalEmits, BModalProps} from '../types/components'
103102
import {computed, ref, toRef, useSlots, watch} from 'vue'
104-
import {isEmptySlot} from '../utils'
105103
import {useBooleanish, useId} from '../composables'
106104
import type {Booleanish, ClassValue, ColorVariant, InputSize} from '../types'
105+
import {isEmptySlot} from '../utils'
107106
import BButton from './BButton/BButton.vue'
108107
import BCloseButton from './BButton/BCloseButton.vue'
109108
import BTransition from './BTransition/BTransition.vue'
@@ -328,6 +327,10 @@ export default {
328327
</script>
329328

330329
<style lang="scss" scoped>
330+
.modal {
331+
display: block;
332+
}
333+
331334
.modal-dialog {
332335
z-index: 1051;
333336
}

0 commit comments

Comments
 (0)