mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update Select.php
This commit is contained in:
@@ -277,7 +277,7 @@ class Select extends Field implements Contracts\CanDisableOptions, Contracts\Has
|
||||
|
||||
$action = Action::make($this->getCreateOptionActionName())
|
||||
->label(__('filament-forms::components.select.actions.create_option.label'))
|
||||
->form(function (Select $component, Form $form): array | Form | null {
|
||||
->form(static function (Select $component, Form $form): array | Form | null {
|
||||
return $component->getCreateOptionActionForm($form->model(
|
||||
$component->getRelationship() ? $component->getRelationship()->getModel()::class : null,
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user