Form Builder - Checkbox List Weird Behavior When Have Trailing Space on The Name
Ticlext-Altihaf opened this issue · comments
Package
filament/forms
Package Version
v3.2.86
Laravel Version
v11.10.0
Livewire Version
v3.5.0
PHP Version
PHP 8.3.7
Problem description
When CheckboxList
name have trailing space, the checks can't be toggled individually, current workaround is to remove any trailing space in the name
filament-issue-checkbox-list.mp4
Note: skip to 0:29 for the problem
Expected behavior
Just like any normal CheckboxList
Steps to reproduce
- This is OK
CheckboxList::make('test')
- This is OK
CheckboxList::make(' test')
- This will cause weird behavior
CheckboxList::make('test ')
- Step in the video
git clone https://github.com/Ticlext-Altihaf/fillament-issue-checkbox-list
php artisan migrate
php artisan serve
Reproduction repository
https://github.com/Ticlext-Altihaf/fillament-issue-checkbox-list
Relevant log output
No response
Donate 💰 to fund this issue
- You can donate funding to this issue. We receive the money once the issue is completed & confirmed by you.
- 100% of the funding will be distributed between the Filament core team to run all aspects of the project.
- Thank you in advance for helping us make maintenance sustainable!
Hey @Ticlext-Altihaf! We're sorry to hear that you've hit this issue. 💛
However, it doesn't look like you've provided much information on how to replicate the issue. Please edit your original post with clear steps we need to take.
Thank you for providing reproduction steps! Reopening the issue now.
We don't support names with trailing spaces, names should be usable within array keys and PHP properties etc and can not contain spaces.