Skip to content

Commit d42b994

Browse files
Merge pull request #2 from ownego/dev
Fix: missing componentListeners in ModalContainer
2 parents e90e8b4 + b727b96 commit d42b994

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/PluginCore.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const PluginCore = (app, options = {}) => {
2929
componentProps,
3030
componentSlots,
3131
modalProps = componentSlots || {},
32-
modalEvents
32+
modalEvents,
33+
componentEvents,
3334
) => {
3435
const container = context.root?.__modalContainer
3536
const defaults = options.dynamicDefaults || {}
@@ -45,7 +46,8 @@ const PluginCore = (app, options = {}) => {
4546
componentProps,
4647
componentSlots,
4748
{ ...defaults, ...modalProps },
48-
modalEvents
49+
modalEvents,
50+
componentEvents,
4951
)
5052
}
5153

src/components/ModalsContainer.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export default {
5353
componentAttrs = {},
5454
componentSlots = {},
5555
modalAttrs = {},
56-
modalListeners = {}
56+
modalListeners = {},
57+
componentListeners = {},
5758
) {
5859
const id = generateId()
5960
const name = modalAttrs.name || PREFIX + id
@@ -64,7 +65,8 @@ export default {
6465
modalListeners,
6566
component,
6667
componentAttrs,
67-
componentSlots
68+
componentSlots,
69+
componentListeners,
6870
})
6971
7072
this.$nextTick(() => {

0 commit comments

Comments
 (0)