Skip to content

Commit

Permalink
Correct slideover class merging (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Aug 27, 2024
1 parent e95528f commit 06ec0eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/slideover/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
<x-tag v-on:reset="toggleScroll(false)" :is="$tag">
<input id="{{ 'close-' . $id }}" class="hidden" type="reset">
@if (!$hasParent)
<input @checked($open) {{ $attributes->merge(['id' => $id]) }} v-on:change="toggleScroll($event.target.checked)" class="peer hidden" type="checkbox">
<input @checked($open) {{ $attributes->merge(['id' => $id, 'class' => 'peer hidden']) }} v-on:change="toggleScroll($event.target.checked)" type="checkbox">
<label
v-bind:for="{{ $attributes->get('v-bind:id') ?? '\'' . $closeId . '\'' }}"
class="pointer-events-none fixed inset-0 z-40 cursor-pointer bg-neutral/50 opacity-0 transition peer-checked:pointer-events-auto peer-checked:opacity-100"
></label>
@else
<input @checked($open) {{ $attributes->merge(['id' => $id]) }} class="peer hidden" type="checkbox">
<input @checked($open) {{ $attributes->merge(['id' => $id, 'class' => 'peer hidden']) }} type="checkbox">
@endif
<div {{ $attributes->class([
'fixed inset-y-0 transition-all bg-white z-40 flex flex-col max-w-md w-full',
Expand Down

0 comments on commit 06ec0eb

Please sign in to comment.