Skip to content

Commit

Permalink
added x-data (outside x-teleport) to the included code
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorombach committed Oct 18, 2024
1 parent 1f318e7 commit ce05b68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/components/modal.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@livewireConfirmModal

<div @keydown.escape.window="$store.confirmModal.hide()"
class="relative z-50 w-auto h-auto">
class="relative z-50 w-auto h-auto"
x-data >
<template x-teleport="body">
<div x-show="$store.confirmModal.show" class="fixed top-0 left-0 z-[99] flex items-center justify-center w-screen h-screen" x-cloak>
<div x-show="$store.confirmModal.show"
Expand Down

0 comments on commit ce05b68

Please sign in to comment.