Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 4ac78ac

Browse files
committed
Component: Fixed on checked
1 parent 48399e4 commit 4ac78ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/components/forms/checkbox.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
@isset($data)
1818
@foreach($data as $key => $value) data-{{ $key }}="{{ $value }}" @endforeach
1919
@endisset
20-
{{ isset($checked) ? 'checked' : '' }}>
20+
{{ isset($checked) && ($checked) ? 'checked' : '' }}>
2121
<span class="custom-control-label">{{ __($label) }}</span>
2222
</label>

0 commit comments

Comments
 (0)