Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 0aa5891

Browse files
committed
Prevent checkbox input event from bubbling up
1 parent c35f9b6 commit 0aa5891

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/views/components/inputs/custom-select-option.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
>
3838
{{-- checkbox --}}
3939
@if ($showCheckbox && ! $isOptGroup)
40-
<div class="flex-shrink-0 mr-2">
40+
<div class="flex-shrink-0 mr-2" x-on:input.prevent.stop="() => {}">
4141
<x-dynamic-component
4242
:component="$multiple ? 'checkbox' : 'radio'"
4343
x-bind:checked="optionSelected()"

resources/views/components/inputs/tree-select-option.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class="h-4 w-4 text-slate-400 group-hover:text-slate-600 transition-colors"
5858
>
5959
{{-- checkbox --}}
6060
@if ($showCheckbox)
61-
<div class="flex-shrink-0 mr-2">
61+
<div class="flex-shrink-0 mr-2" x-on:input.prevent.stop="() => {}">
6262
<x-dynamic-component
6363
:component="$multiple ? 'checkbox' : 'radio'"
6464
x-bind:checked="optionSelected()"

0 commit comments

Comments
 (0)