Skip to content

Use together Clickable steps and Footer inside the step. #22

Answered by RayRizzling
luisalrp asked this question in Q&A
Discussion options

You must be logged in to vote

The current implementation of the Stepper component includes an unnecessary onClickStep prop, which interferes with the default step navigation. Here's the problematic code:

<Stepper
    orientation="vertical"
    initialStep={0}
    steps={steps}
    onClickStep={(step, setStep) => {
      setStep(step); // Manual step management
    }}
>

Remove the onClickStep prop to restore the default step management. The updated implementation is:

  <Stepper
    orientation="vertical"
    initialStep={0}
    steps={steps}
  >

Explanation:
The onClickStep prop is intended for custom navigation behavior, but it is unnecessary for basic use cases. Omitting it allows the Stepper to rely on its built-in …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nyxb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants