footerActions run when modal open and close
And both actions run when I click one of them. Even with out the
->schema
section.
This is in a Relationanager :
12 Replies
bump
Bump
try naming the section, makes shouldn't really be empty
Looking at the docs under section overview:
You can also use a section without a header, which just wraps the components in a simple card:
. and it shows an example of
but I did try adding unique names to the makes() in case the Split required named sections.It won'\t make any difference but
is better
The actions should work correctly thought, I was trying to pin point any issue. I see no reason the actions are being run at the same time...
Plese create a reproduction repository?
In the middle of a reproduction repository and I wondered if there was a repo to clone for that purpose?
No, just need a site that we can spin up. Native laravel and filament install.
I wasn't sure if the issue would disappear... but here it is https://github.com/ddoddsr/test-action-misfire
GitHub
GitHub - ddoddsr/test-action-misfire
Contribute to ddoddsr/test-action-misfire development by creating an account on GitHub.
login [email protected] pw asdfasdf
OK there it is , I duplicated the issue .
Solution
You should pass an action or a closure to the
action
method
Ahh of course because it's evaluated on boot isn't it duh.
Always pass an Action ot Closure.. Yes that was something I missed. Because it is static?
It maybe static but the closure makes it programtic and each one is evaluated