This repository was archived by the owner on Jan 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 111
Form group with radio is causing all radio buttons having checked attribute #20
Comments
Thans for reporting, I'll try to fix it this week. |
Thanks @therajumandapati, you saved me quite some time! |
Could you both try this branch and confirm it has been fixed? Thanks! composer require protonemedia/laravel-form-components:dev-radio-bugfix-20 |
@Inwave @therajumandapati any news on testing the bugfix? |
Will check now! |
Just tested it and it works on my end. Thanks @pascalbaljet |
Thanks, I'll merge it soon! |
Fixed in v2.1.2 |
Thanks for the fast turn around @pascalbaljet |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uh oh!
There was an error while loading. Please reload this page.
We're using
<x-form-group>
with a couple of<x-form-radio>
elements inside. When a value is selected and the form reloads due to validation errors, all radio elements have thechecked='checked'
attribute.I think this is due to the fact that
<x-form-radio>
component is using a class which extendsFormCheckbox
and because of the presence of this line: https://github.com/protonemedia/laravel-form-components/blob/master/src/Components/FormCheckbox.php#L33It could be fixed by changing
FormRadio.php
to the following:The text was updated successfully, but these errors were encountered: