Skip to content

Commit 08a4a31

Browse files
authored
Merge pull request bootstrap-vue#74 from xiaoyufan/master
Add modal id to shown::modal and hidden::modal event payload
2 parents abdd1e5 + e6f2666 commit 08a4a31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/modal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
this._modalAnimation = setTimeout(() => {
6969
_this._body.classList.add('modal-open');
7070
_this.animateModal = true;
71-
_this.$root.$emit('shown::modal')
71+
_this.$root.$emit('shown::modal', this.id)
7272
}, (_this.fade) ? TRANSITION_DURATION : 0)
7373
}, 0)
7474
},
@@ -83,7 +83,7 @@
8383
_this._body.classList.remove('modal-open');
8484
// no hide the modal wrapper
8585
_this.$el.style.display = 'none';
86-
_this.$root.$emit('hidden::modal')
86+
_this.$root.$emit('hidden::modal', this.id)
8787
}, (_this.fade) ? TRANSITION_DURATION : 0)
8888
}, (_this.fade) ? TRANSITION_DURATION : 0)
8989
},

0 commit comments

Comments
 (0)