Skip to content

Commit eeee2bc

Browse files
Fix - Modal
Css glitch and wrong wire:model bind
1 parent bfe70d6 commit eeee2bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/View/Components/Modal.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ public function render(): View|Closure|string
2424
{
2525
return <<<'HTML'
2626
<dialog
27-
{{ $attributes->class(["modal"]) }}
28-
27+
{{ $attributes->except('wire:model')->class(["modal"]) }}
28+
2929
@if($id)
3030
id="{{ $id }}"
3131
@else
3232
x-data="{open: @entangle($attributes->wire('model')).live }"
33-
:class="{'modal-open': open}"
33+
:class="{'modal-open !animate-none': open}"
3434
:open="open"
3535
@keydown.escape.window = "$wire.{{ $attributes->wire('model')->value() }} = false"
3636
@endif

0 commit comments

Comments
 (0)