filament/filament
v3.2.123
v11.30.0
v3.5.12
8.2
I have a simple multiple select input where the default values are not selected on page load.
Here is the form
function in my UserResource.php
file:
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Select::make('dummy select')
->options([1, 2, 3, 4])
->default([1, 3])
->multiple()
]);
}
As you can see, it’s a straightforward setup with no complex logic, but the default values are not being pre-selected as expected.
The select element should load with the default values [1, 4]
pre-selected.
[1, 4]
are not pre-selected in the select input.https://github.com/SiavashBamshadnia/filament_default_select_problem
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too