diff --git a/src/index.js b/src/index.js index 805ca65..d0ce53b 100644 --- a/src/index.js +++ b/src/index.js @@ -24,14 +24,14 @@ const Plugin = { _setDynamicContainer (dynamicContainer) { Plugin.dynamicContainer = dynamicContainer }, - show (modal, paramsOrProps, params) { + show (modal, paramsOrProps, params, events = null) { if (typeof modal === 'string') { Plugin.event.$emit('toggle', modal, true, paramsOrProps) } else { if (Plugin.dynamicContainer === null) { console.warn('[vue-js-modal] In order to render dynamic modals, a component must be present on the page') } else { - Plugin.dynamicContainer.add(modal, paramsOrProps, params) + Plugin.dynamicContainer.add(modal, paramsOrProps, params, events) } } },