Update Select.php

This commit is contained in:
Ralph J. Smit
2025-07-23 15:12:21 +02:00
parent e2d22546fa
commit 56976700a3
+1 -1
View File
@@ -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,
));