Skip to content

Commit

Permalink
[resources/components]: Input switch value attr may now be customized…
Browse files Browse the repository at this point in the history
…, using 'true' as default
  • Loading branch information
dfsmania committed Nov 2, 2024
1 parent 4dafd79 commit 9efa375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/form/input-switch.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
@section('input_group_item')

{{-- Input Switch --}}
<input type="checkbox" id="{{ $id }}" name="{{ $name }}" value="true"
{{ $attributes->merge(['class' => $makeItemClass()]) }}>
<input type="checkbox" id="{{ $id }}" name="{{ $name }}"
{{ $attributes->merge(['class' => $makeItemClass(), 'value' => 'true']) }}>

@overwrite

Expand Down

0 comments on commit 9efa375

Please sign in to comment.