protonemedia / laravel-form-components

A set of Blade components to rapidly build forms with Tailwind CSS (v1.0 and v2.0) and Bootstrap 4/5. Supports validation, model binding, default values, translations, Laravel Livewire, includes default vendor styling and fully customizable!

Home Page:https://protone.media/blog/laravel-form-components-to-rapidly-build-forms-with-tailwind-css-and-bootstrap-4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Checkboxes and Radios broken after 2.5.1

therajumandapati opened this issue · comments

After 2.5.1, it seems that Checkboxes and Radio buttons are broken when used in a Grouped setting. This is because the ID was previously being dynamically generated which was replaced to simply use the name attribute.

As the id attribute is the same for multiple inputs targeting the same option, the value will not change between different options.

Please see attached screenshot comparing this with 2.5.1 and 2.1.1:

2.5.1 (broken):
image

2.1.1 (working):
image

@pascalbaljet This commit 2688847 seems to be what started this.

I just tagged v2.5.2 which should solve this :)

@pascalbaljet Seems to be working, thanks for the quick fix.