[WIZARD] Next and submit button do not change after Wizard\Step becomes visible.
Hi! I am using a Wizard in a
CreateResource
. It has one "general" step, but the other steps are shown based on the selected product.
This is where my problem occurs: When selecting a product, the step appears in the header of the widget, but unfortunately, the "next" button does not show up.
I've added a video demonstrating this issue. As you can see, the submit button ("Aanmaken") remains visible, whereas it should be replaced by the next button ("Volgende").
Am I missing something? Is this not possible at all, or could this be a bug? I'd love to hear your thoughts!
Thanks in advance!Solution:Jump to solution
@ChesterS Lots of tears later, but I found the issue! It appears something is going wrong with the ‘x-show’ property. After changing it to ‘x-bind:class’ everything works fine. I’ve opened a PR to resolve this: https://github.com/filamentphp/filament/pull/15493 Thanks for your help! 🎉
GitHub
Hide Wizard Action buttons using x-bind:class instead of x-show so ...
… works with hidden Steps
There was a bug with the action buttons in a wizard. When the last step of a wizard was hidden and then becomes visible, the submit button stays visible while it should be...
5 Replies
Here you can see the code of my form:
@Jesse you are using 2 times product_id. Also in step 2
Heh I had the exact same issue. Unfortunately, I couldn't find a propert solution. I ended up adding a workaround, something like this
There's probably a better way to do it but I wanted a quick solution.
If you want to see the the actual code for this, take a look at
maybe you can think of something I didn't.
Solution
@ChesterS Lots of tears later, but I found the issue! It appears something is going wrong with the ‘x-show’ property. After changing it to ‘x-bind:class’ everything works fine. I’ve opened a PR to resolve this: https://github.com/filamentphp/filament/pull/15493 Thanks for your help! 🎉
GitHub
Hide Wizard Action buttons using x-bind:class instead of x-show so ...
… works with hidden Steps
There was a bug with the action buttons in a wizard. When the last step of a wizard was hidden and then becomes visible, the submit button stays visible while it should be...
Awesome, thanks. That's what I mean 'a proper solution' 😂