Skip to content

[Bug]: itemsActions not working #3

Description

@jouniikaheimo

What happened?

Filament\Pages\BasePage::getInfolist(): Argument #1 ($name) must be of type string, null given, called in /xxx/xxx/xxx/vendor/filament/infolists/src/Concerns/InteractsWithInfolists.php on line 247

How to reproduce the bug

                                        ->itemActions([

                                            ActionGroup::make([
                                                Action::make('edit')
                                                    ->mountUsing(
                                                        function (Model $record, $form): void {
                                                            $form->fill($record->riskinformation->toArray());
                                                        }
                                                    )
                                                    ->slideOver()
                                                    ->form([
                                                        TextInput::make('title')->label(__('Title')),
                                                        Forms\Components\RichEditor::make('text')->label(__('Text')),
                                                        Forms\Components\Toggle::make('importance')->label(__('Importance')),
                                                    ])
                                                    ->action(static function (Customers $record, $data): void {

                                                        $record->riskinformation->update($data);
                                                        Notification::make()
                                                            ->title(__('Riskinformation updated'))
                                                            ->success()
                                                            ->send();
                                                    }),
                                                Action::make('delete'),
                                            ]),
                                        ])

Package Version

lasted

PHP Version

lasted

Laravel Version

lasted

Which operating systems does with happen with?

macOS

Notes

The InputAction function gives an error,when some action button is used
Argument #1 ($name) must be of type string.. i try to debug what is issue but not solved

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions