Skip to content

Commit

Permalink
TABLE - use @js() on dispatch event
Browse files Browse the repository at this point in the history
  • Loading branch information
robsontenorio authored Aug 28, 2023
1 parent 1ef8083 commit bfe70d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Components/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function render(): View|Closure|string
<!-- ROWS -->
<tbody>
@foreach($rows as $row)
<tr class="hover:bg-base-200/50" @click="$dispatch('row-click', {{ $row }});">
<tr class="hover:bg-base-200/50" @click="$dispatch('row-click', @js($row));">
@foreach($headers as $header)
@php
# Scoped slot`s name like `user.city` are compiled to `user___city` through `@scope / @endscope`.
Expand Down

0 comments on commit bfe70d6

Please sign in to comment.