TableWidget modal not opening
I have a tablewidget with the following code:
According to the following docs that should be good: https://filamentphp.com/docs/3.x/actions/modals#custom-modal-content.
Only problem now is that no modal opens.
16 Replies
There is no modal to open as there is no form or requiresConfirmation.
Also you have two actions there, there should only be one.
The second one is the action from the action. Not two different actions
If i only define a form it still doesnt work?
Why would a modal show without a form?
and you can't have two action functions like that.
Because it always does?
Did you look at the docs?
There is literally 2 actions there
For a column action you need to do the first
->action()
on the column
In that function you make a Action with the action code inside
Nothing weird hereYes they are sub elements....
You have put ->action()->action()
the section action there is part of Action::
No?
I see now your code is badly formatted.
So if you want a modal, you need to add requiresConfirmation.
Then the content will be what you have defined.
Weird
Still no modal
What if you do ->form([TextInput::make('test')])
This is on the Action::make()
If i do the following on a regular table:
It works
On the tablewidget
Exact same code
Does nothing
I get the feeling my tablewidget are not working correctly.
->visible()
and ->hidden()
were alsno not working the right wayVery possibly, then I am unsure
Not sure what could've caused this
Its almost a standard repo
Okay found the issue. It is due to the table query.