bennett
How to return the Wizard to step 1 after create success in custom page.
I was able to accomplish this by placing a listener in Filament rendered HTML:
new HtmlString('<div x-on:reset-step.window="step = \'vendors\'"></div>')
Obviously you could do this within a label, placeholder, etc. Just note that step
is the Alpine variable representing the current step.
Lastly you just dispatch reset-step
from your Livewire component.5 replies
How to return the Wizard to step 1 after create success in custom page.
I'm also having trouble with this. There doesn't seem to be an event listener you can hook into, and nothing sticks out to me in
Wizard.php
as an easy way to do this. Calling $this->reset()
in my component doesn't make the Wizard step reset to 1.5 replies