Skip to content

Commit 40add52

Browse files
committed
adjusting table row wire:key so that it's unique
1 parent 0f86c8b commit 40add52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/tailwind/includes/table.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class="rounded border-gray-300 text-indigo-600 shadow-sm transition duration-150
9696
@forelse ($rows as $index => $row)
9797
<x-livewire-tables::table.row
9898
wire:loading.class.delay="opacity-50 dark:bg-gray-900 dark:opacity-60"
99-
wire:key="table-row-{{ $row->{$primaryKey} }}"
99+
wire:key="table-row-{{ md5(rand()) }}-{{ $row->{\Rappasoft\LaravelLivewireTables\Utilities\ColumnUtilities::parseField($primaryKey)} }}"
100100
wire:sortable.item="{{ $row->{$primaryKey} }}"
101101
:reordering="$reordering"
102102
:url="method_exists($this, 'getTableRowUrl') ? $this->getTableRowUrl($row) : ''"

0 commit comments

Comments
 (0)