Skip to content

Commit 4b13d4a

Browse files
committed
Fix checkbox following url if row click enabled
1 parent 09f22c5 commit 4b13d4a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

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

55
## [Unreleased]
66

7+
## [1.0.2] - 2021-04-17
8+
9+
### Changed
10+
11+
- Fixed checkbox click with row click combination following URL and not checking checkbox.
12+
713
## [1.0.1] - 2021-04-17
814

915
### Changed
@@ -163,7 +169,8 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
163169

164170
- Initial release
165171

166-
[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.0.1...development
172+
[Unreleased]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.0.2...development
173+
[1.0.2]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.0.1...v1.0.2
167174
[1.0.1]: https://github.com/rappasoft/laravel-livewire-tables/compare/v1.0.0...v1.0.1
168175
[1.0.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.4.0...v1.0.0
169176
[0.4.0]: https://github.com/rappasoft/laravel-livewire-tables/compare/v0.3.3...v0.4.0

resources/views/bootstrap-4/includes/table.blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class="btn btn-primary btn-sm"
6868
<input
6969
wire:model="selected"
7070
value="{{ $row->getKey() }}"
71+
onclick="event.stopPropagation();return true;"
7172
type="checkbox"
7273
/>
7374
</x-livewire-tables::bs4.table.cell>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class="ml-1 text-blue-600 underline text-cool-gray-700 text-sm leading-5 font-me
7373
<input
7474
wire:model="selected"
7575
value="{{ $row->getKey() }}"
76+
onclick="event.stopPropagation();return true;"
7677
type="checkbox"
7778
class="rounded-md shadow-sm border-cool-gray-300 block transition duration-150 ease-in-out sm:text-sm sm:leading-5"
7879
/>

0 commit comments

Comments
 (0)