TableRepeater & Form Actions
Closed this issue · 0 comments
Cannonb4ll commented
Filament Version
v3
Plugin Version
v2.0.0
PHP Version
PHP 8.2
Problem description
When using the new actions feature inside a table repeater:
Forms\Components\Actions::make([
Forms\Components\Actions\Action::make('resetStars')
->icon('heroicon-m-x-mark')
->color('danger')
->requiresConfirmation()
->action(function () {
}),
])
This breaks the repeater when using columnWidths(): Method Filament\Forms\Components\Actions::getName does not exist.
Expected behavior
To render the action buttons.
Steps to reproduce
Create a tablerepeater, use the columnWidths() method, and add this:
Forms\Components\Actions::make([
Forms\Components\Actions\Action::make('resetStars')
->icon('heroicon-m-x-mark')
->color('danger')
->requiresConfirmation()
->action(function () {
}),
])
Reproduction repository
No response
Relevant log output
No response