Skip to content

Commit

Permalink
Added a x-on:close-modal.window directive so we can close modal from …
Browse files Browse the repository at this point in the history
…livewire function (#341)
  • Loading branch information
lucidpolygon authored Dec 17, 2023
1 parent feb12d9 commit c951946
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stubs/default/resources/views/components/modal.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
}
})"
x-on:open-modal.window="$event.detail == '{{ $name }}' ? show = true : null"
x-on:close-modal.window="$event.detail == '{{ $name }}' ? show = false : null"
x-on:close.stop="show = false"
x-on:keydown.escape.window="show = false"
x-on:keydown.tab.prevent="$event.shiftKey || nextFocusable().focus()"
Expand Down

0 comments on commit c951946

Please sign in to comment.