diff --git a/resources/js/modal.js b/resources/js/modal.js index 38ae2d2..80ae044 100644 --- a/resources/js/modal.js +++ b/resources/js/modal.js @@ -32,7 +32,7 @@ window.LivewireUIModal = () => { if (this.getActiveComponentModalAttribute('dispatchCloseEvent') === true) { const componentName = this.$wire.get('components')[this.activeComponent].name; - Livewire.dispatch('modalClosed', componentName); + Livewire.dispatch('modalClosed', {name: componentName}); } if (this.getActiveComponentModalAttribute('destroyOnClose') === true) {