Form component Section have empty fields on edit entity page

When trying to open an editing page containing a section component, the fields of this section are not filled with default values. Here is simple code:
public static function form(Form $form): Form
{
return $form
->schema([
Components\Section::make('Section')
->schema([
Components\Select::make('select1')
->options([
'1' => '1',
'2' => '2',
'3' => '3'
])
->default('2')
->label('Select 1'),
Components\Select::make('select2')
->options([
'1' => '1',
'2' => '2',
'3' => '3'
])
->default('3')
->label('Select 1'),
])
])->columns(1);
}
public static function form(Form $form): Form
{
return $form
->schema([
Components\Section::make('Section')
->schema([
Components\Select::make('select1')
->options([
'1' => '1',
'2' => '2',
'3' => '3'
])
->default('2')
->label('Select 1'),
Components\Select::make('select2')
->options([
'1' => '1',
'2' => '2',
'3' => '3'
])
->default('3')
->label('Select 1'),
])
])->columns(1);
}
No description
1 Reply
Want results from more Discord servers?
Add your server