File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
16
16
- Modified views to support localization better where necessary (republish views).
17
17
- Alphabetize en.json
18
18
- Fixed bulk actions using wrong key to select instead of $primaryKey
19
+ - Make bulk select checkbox use primary key
19
20
20
21
## [ 1.3.1] - 2021-04-26
21
22
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class="btn btn-primary btn-sm"
76
76
<x-livewire-tables::bs4 .table.cell >
77
77
<input
78
78
wire:model =" selected"
79
- value =" {{ $row -> getKey () } }"
79
+ value =" {{ $row -> { $primaryKey } } }"
80
80
onclick =" event.stopPropagation();return true;"
81
81
type =" checkbox"
82
82
/>
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class="btn btn-primary btn-sm"
77
77
<x-livewire-tables::bs5 .table.cell class =" align-middle" >
78
78
<input
79
79
wire:model =" selected"
80
- value =" {{ $row -> getKey () } }"
80
+ value =" {{ $row -> { $primaryKey } } }"
81
81
onclick =" event.stopPropagation();return true;"
82
82
class =" form-check-input"
83
83
type =" checkbox"
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class="ml-1 text-blue-600 underline text-gray-700 text-sm leading-5 font-medium
81
81
<div class =" flex rounded-md shadow-sm" >
82
82
<input
83
83
wire:model =" selected"
84
- value =" {{ $row -> getKey () } }"
84
+ value =" {{ $row -> { $primaryKey } } }"
85
85
onclick =" event.stopPropagation();return true;"
86
86
type =" checkbox"
87
87
class =" rounded-md shadow-sm border-gray-300 block transition duration-150 ease-in-out sm:text-sm sm:leading-5"
You can’t perform that action at this time.
0 commit comments