Skip to content

Commit 052f6a9

Browse files
Merge pull request #13 from essamamdani/patch-1
Fixed Radio
2 parents 4e2370a + 0a690d1 commit 052f6a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/View/Components/Radio.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function render(): View|Closure|string
3737
@foreach ($options as $option)
3838
<input
3939
type="radio"
40-
name="{{ $name }}"
40+
name="{{ $name() }}"
4141
value="{{ $option->$optionValue }}"
4242
aria-label="{{ $option->$optionLabel }}"
4343
{{ $attributes->whereStartsWith('wire:model') }}
@@ -46,7 +46,7 @@ public function render(): View|Closure|string
4646
@endforeach
4747
</div>
4848
49-
@error($name)
49+
@error($name())
5050
<div class="text-red-500 label-text-alt pl-1">{{ $message }}</div>
5151
@enderror
5252

0 commit comments

Comments
 (0)