F
Filament4mo ago
nowak

Relation manager attach recordSelect not working after updating filament from 3.2.2 to 3.2.27

I have a UserResource with a GroupsRelationManager, which has this in its headerActions:
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\Select::make('role')
->label('Group Role')
->options([
'moderator' => 'moderator',
'member' => 'member',
])
->placeholder('Select a group role')
->required(),
]),
])
->headerActions([
Tables\Actions\AttachAction::make()
->preloadRecordSelect()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\Select::make('role')
->label('Group Role')
->options([
'moderator' => 'moderator',
'member' => 'member',
])
->placeholder('Select a group role')
->required(),
]),
])
When I try to attach a group to a user, it is as if the recordSelect for selecting a group is disabled. I can't click it or anything. This worked before I upgraded filament: Upgrading filament/filament (v3.2.2 => v3.2.27). I have attached a screenshot of the grayed out select field in the attach modal for attaching groups to a user.
No description
Solution:
npm run build Does that resolve it?...
Jump to solution
3 Replies
nowak
nowak4mo ago
Even when I click Attach on a user that already has an attached group, the attached group is not shown in the select field:
No description
Solution
toeknee
toeknee4mo ago
npm run build Does that resolve it?
nowak
nowak4mo ago
Yes it does, wow. Thanks!