Skip to content

Commit cc0f8a2

Browse files
committed
fix trap
1 parent e13c6bb commit cc0f8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/livewire/modal.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
}
143143
});
144144
},
145-
}" x-show="modalOpen" x-trap="modalOpen" x-on:modal-open.window="onOpenModal"
145+
}" x-show="modalOpen" x-on:modal-open.window="onOpenModal"
146146
x-on:modal-preload.window="onPreloadModal" x-on:modal-close.window="onCloseModal"
147147
x-on:modal-close-all.window="onCloseAllModal" x-on:mousedown.self="onCloseModal"
148148
x-on:keyup.escape.prevent.stop="onCloseModal" x-transition.opacity.duration.250ms
@@ -162,7 +162,7 @@ class="fixed left-0 top-0 z-40 grid h-dvh w-full select-none overflow-hidden bg-
162162
get modalStack() { return this.modal?.stack ?? null; },
163163
get isModalStacked() { return modalActiveStack && modalActiveStack === this.modalStack; },
164164
}" class="flex size-full min-h-0 min-w-0 select-text" style="grid-area: stack;"
165-
x-bind:id="modalId" x-on:mousedown.self="onCloseModal"
165+
x-bind:id="modalId" x-on:mousedown.self="onCloseModal" x-trap="isModalActive"
166166
wire:key="{{ $this->getId() }}.modalComponents.{{ $id }}">
167167
@livewire($component, $props, key("{$this->getId()}.modalComponents.{$id}.component"))
168168
</div>

0 commit comments

Comments
 (0)