From 9c2c14da61b4b47b5d02d062a2630b0383f864fc Mon Sep 17 00:00:00 2001 From: Vlad Rusu Date: Sat, 21 Oct 2023 12:20:51 +0300 Subject: [PATCH] Update modal.js Livewire 3 dispatch arguments must be named --- resources/js/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {