F
Filament15mo ago
Zetto

AttachAction not working for custom select

I'm trying to customize the attach action select and add more forms for pivot table attributes, however it does not change (it still the search select) and there is no error or exception showing. I don't know if this is a bug or cache thing (clearing view and cache does notwork) example code for the pivot attribute,
->headerActions([
Tables\Actions\AttachAction::make()->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('role')
->required(),
]),
])
->headerActions([
Tables\Actions\AttachAction::make()->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('role')
->required(),
]),
])
1 Reply
Zetto
ZettoOP15mo ago
Following up, it started working again, but all i did was deleting the space and tabs, idk if that causes anything to the closure
Want results from more Discord servers?
Add your server