Skip to content

Commit 6901c5d

Browse files
committed
Merge branch 'LuizCristino-master' into develop
2 parents 824eeff + 87389f7 commit 6901c5d

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
44

55
## [Unreleased]
66

7+
### Added
8+
9+
- Added missing row wire:click to BS4/5 - https://github.com/rappasoft/laravel-livewire-tables/pull/658
10+
711
## [1.24.0] - 2022-02-13
812

913
### Added

resources/views/bootstrap-4/components/table/row.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
@endif
88

99
<tr
10-
{{ $attributes->merge($customAttributes) }}
10+
{{ $attributes->merge($customAttributes)->merge(['style' => ($url || $wireclick) ? 'cursor: pointer;' : '']) }}
1111

1212
@if ($url)
1313
onclick="window.open('{{ $url }}', '{{ $target }}')"
14-
style="cursor:pointer"
14+
@elseif ($wireclick)
15+
wire:click="{{ $wireclick }}"
1516
@endif
1617
>
1718
{{ $slot }}

resources/views/bootstrap-5/components/table/row.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
@endif
88

99
<tr
10-
{{ $attributes->merge($customAttributes) }}
10+
{{ $attributes->merge($customAttributes)->merge(['style' => ($url || $wireclick) ? 'cursor: pointer;' : '']) }}
1111

1212
@if ($url)
1313
onclick="window.open('{{ $url }}', '{{ $target }}')"
14-
style="cursor:pointer"
14+
@elseif ($wireclick)
15+
wire:click="{{ $wireclick }}"
1516
@endif
1617
>
1718
{{ $slot }}

0 commit comments

Comments
 (0)