Tables Action does nothing
I am trying to open a modal / execute an action from a table.
Unfortunately, absolutely nothing happens. It rotates briefly in the frontend, but the code in the action is not executed either.
13 Replies
The ViewAction works?
You don't have another
test
action on that page, right?yes, i don't have a other test action
and view action doesnt work too
like you can see in the attached video
but on other sites/relations the viewaction works like it should
Right, sorry. Hm. Is this a default view page or a custom page?
Okay, I have a
PlanResource
it's a default Resource (class PlanResource extends Resource
)
there i have a relation:
This relation was resolved by:
and in PlanComponentsRelationManager
there is the table with a action. And that action is not doing anything:
@Iven S. | LvckyWorldᶜʳᵉʷ did you find a solution for this? Stumbling upon the same. When clicking the row it seems to fire a close-modal event instead of an open-modal event but have no clue what causes it
No, no solution
That's the exact same problem
Do you by any chance use UUID as the primary key instead of an ID?
Yes i am using UUID
In the sushi model/model define
The key as 'string'
Could you check if your model has the "HasUuids" trait?
That was the fix for us
protected $primaryKey = 'id';
protected $keyType = 'string';
My model only has the Sushi trait
This trait was what I had forgotten to add to the model, once added the modals started working again. Might work for you as well,
Illuminate\Database\Eloquent\Concerns\HasUuids
And this has fixed the problem with 'close-modal' for you?
Yeah
It is a requirement when using uuids instead of integers, but I just forgot