Skip to content

Commit 1f303c3

Browse files
committed
fix: ButtonGroup on change events
1 parent 0431506 commit 1f303c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/fields/button-group.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
'multiple' => false,
66
'values' => []
77
])
8-
<div {{ $attributes->merge(['class' => 'advanced-button-group']) }} data-validation-field="{{ $column }}">
8+
<div {{ $attributes->only(['class'])->merge(['class' => 'advanced-button-group']) }} data-validation-field="{{ $column }}">
99
@foreach($options as $option => $label)
1010
<x-moonshine::link-button
1111
:attributes="$attributes->only([])->merge($optionAttributes === null ? [] : $optionAttributes($option))"
1212
>
1313
<label>
1414
<x-moonshine::form.input
1515
:type="$multiple ? 'checkbox' : 'radio'"
16-
:attributes="$attributes->only(['name'])->merge(['checked' => $multiple ? in_array($option, $value) : $option == $value])"
16+
:attributes="$attributes->except(['type', 'checked', 'value', 'style', 'class', 'id'])->merge(['checked' => $multiple ? in_array($option, $value) : $option == $value])"
1717
value="{{ $option }}"
1818
/>
1919
</label>

0 commit comments

Comments
 (0)