Skip to content

Commit 17da50b

Browse files
committed
add checked and disabled to forwarded attributes
1 parent f11440d commit 17da50b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/views/components/button/radio.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99

1010
@php
1111
$input = $attributes->filter(function ($value, $key) {
12-
return in_array($key, ['name', 'value']) || Str::startsWith($key, ['x-bind:value', 'x-model', 'wire:model']);
12+
if (in_array($key, ['name', 'value'])) {
13+
return true;
14+
}
15+
return Str::startsWith($key, ['x-bind:value', 'x-bind:checked', 'x-bind:disabled', 'x-model', 'wire:model']);
1316
});
1417
$label = $attributes->except(array_keys($input->getAttributes()))->class([
1518
//

0 commit comments

Comments
 (0)