Skip to content
Permalink
Browse files

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
  • Loading branch information...
tmorehouse authored and jackmu95 committed Aug 21, 2019
1 parent a392059 commit 8bf3a55a01811671fee223011dd90903faf1b79b
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/components/modal/modal.js
@@ -261,6 +261,7 @@ export const props = {
export const BModal = /*#__PURE__*/ Vue.extend({
name: NAME,
mixins: [idMixin, listenOnRootMixin, normalizeSlotMixin],
inheritAttrs: false,
model: {
prop: 'visible',
event: 'change'
@@ -992,7 +993,7 @@ export const BModal = /*#__PURE__*/ Vue.extend({
{
key: `modal-outer-${this._uid}`,
style: this.modalOuterStyle,
attrs: { id: this.safeId('__BV_modal_outer_') }
attrs: { ...this.$attrs, id: this.safeId('__BV_modal_outer_') }
},
[modal, backdrop]
)

0 comments on commit 8bf3a55

Please sign in to comment.
You can’t perform that action at this time.