Skip to content

Commit 8bf3a55

Browse files
tmorehousejacobmllr95
authored andcommitted
fix(b-modal): ensure non-prop attributes are transferred to the modal outer wrapper div (closes #3896) (#3921)
* fix(b-modal): ensure attributes are transferred to the modal outer wrapper * Update modal.js
1 parent a392059 commit 8bf3a55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/modal/modal.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export const props = {
261261
export const BModal = /*#__PURE__*/ Vue.extend({
262262
name: NAME,
263263
mixins: [idMixin, listenOnRootMixin, normalizeSlotMixin],
264+
inheritAttrs: false,
264265
model: {
265266
prop: 'visible',
266267
event: 'change'
@@ -992,7 +993,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
992993
{
993994
key: `modal-outer-${this._uid}`,
994995
style: this.modalOuterStyle,
995-
attrs: { id: this.safeId('__BV_modal_outer_') }
996+
attrs: { ...this.$attrs, id: this.safeId('__BV_modal_outer_') }
996997
},
997998
[modal, backdrop]
998999
)

0 commit comments

Comments
 (0)