collapse form section on submit

I have a use-case that would probably be more like a wizard, but I have limited screen real estate and I need to use a slideover. So my thought was to use a form section and once that section is submitted, to collapse it and open up the next form section. I tried using a prop on the component and then setting it when the form is submitted, passing that prop into the ->collapsed() method, which I see takes a closure.

Unfortunately, the prop is getting updated, but it seems the form section is only rendered once (maybe?). I did eventually kind of get it working but you'd have to click the submit button two or three times to make it collapse, which isn't ideal. Is there any way to accomplish this? Can I tap into the collapsed attribute of the section with alpine or something?
Was this page helpful?