Skip to content

Commit bfe70d6

Browse files
TABLE - use @js() on dispatch event
1 parent 1ef8083 commit bfe70d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/View/Components/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function render(): View|Closure|string
5858
<!-- ROWS -->
5959
<tbody>
6060
@foreach($rows as $row)
61-
<tr class="hover:bg-base-200/50" @click="$dispatch('row-click', {{ $row }});">
61+
<tr class="hover:bg-base-200/50" @click="$dispatch('row-click', @js($row));">
6262
@foreach($headers as $header)
6363
@php
6464
# Scoped slot`s name like `user.city` are compiled to `user___city` through `@scope / @endscope`.

0 commit comments

Comments
 (0)