Thiktak / filament-simple-list-entry

Plugin for FilamentPHP - Simple List Entry
https://filamentphp.com/plugins/thiktak-simple-list-entry
MIT License
20 stars 22 forks source link

[Bug]: itemsActions not working #3

Open jouniikaheimo opened 1 year ago

jouniikaheimo commented 1 year ago

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

ronylicha commented 8 months ago

Had the same bug, i'm looking for a solution