F
Filament2y ago
Abi

Standalone Table with Row Actions not working

I have the following table actions for my standalone table.
public function getTableActions(): array
{
return [
Action::make('Edit')->form($this->getFormSchema())->modalWidth('md')->action(function ($data) {
$this->company->benefits()->updateExistingPivot($data['id'], ['benefit_description' => $data['description']]);
}),
Action::make('Delete')->requiresConfirmation()->action(function ($data) {
$this->company->benefits()->detach($data['id']);
}),
];
}
public function getTableActions(): array
{
return [
Action::make('Edit')->form($this->getFormSchema())->modalWidth('md')->action(function ($data) {
$this->company->benefits()->updateExistingPivot($data['id'], ['benefit_description' => $data['description']]);
}),
Action::make('Delete')->requiresConfirmation()->action(function ($data) {
$this->company->benefits()->detach($data['id']);
}),
];
}
Not sure why, but clicking on the Edit or Delete actions does nothing.
7 Replies
LeandroFerreira
any console errors?
Abi
AbiOP2y ago
upgraded to v3 and i am good now
Abi
AbiOP2y ago
ok, facing this issue again. No console errors but there is a network call and the response is always about close-modal. Screenshot of the network call response
Abi
AbiOP2y ago
Here is the payload
Abi
AbiOP2y ago
strangest thing is, it was working fine and then suddenly it doesn't
Abi
AbiOP2y ago
Here is a screen recording of the issue I am facing https://share.cleanshot.com/4xZDqtxK
CleanShot Cloud
CleanShot 2023-07-21 at 03.41.14
Video uploaded to CleanShot Cloud
Abi
AbiOP2y ago
another strange issue, the row actions work in one screen and not in the other.
Want results from more Discord servers?
Add your server