Back button behavior with nested views, multi step wizard #8000
Unanswered
idank
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a page with several steps that the user progress through, each step is mapped to a different path using a router.
Within each step, we move to the next step using a button that performs a
router.push
with the path of the next step.The problem I'm having is maintaining correct "back" behavior on the browser. The
default
/step
router-views render the previous step correctly, but theo-steps
component, which has a marker of the current step, doesn't. It still shows the pre-back step highlighted. I guess this makes sense as the steps component isn't aware of the router or use it in any way.What would be the correct way to handle this?
<Editor> template
:Beta Was this translation helpful? Give feedback.
All reactions