Skip to content

Commit

Permalink
Fix modalClosed event by switching to named arguments (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladrusu authored Nov 12, 2023
1 parent 0f64fc4 commit 6a1f730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6a1f730

Please sign in to comment.