Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - Wizard - users must to revisit steps in order #10640

Open
dlabrecq opened this issue Jun 21, 2024 · 0 comments
Open

Bug - Wizard - users must to revisit steps in order #10640

dlabrecq opened this issue Jun 21, 2024 · 0 comments
Labels

Comments

@dlabrecq
Copy link
Member

dlabrecq commented Jun 21, 2024

Trying to update Cost Management to use the PF v5 wizard, but having trouble forcing users to revisit all steps. In our scenario, users can revisit a previous step, but they cannot skip the following (next) step.

Properties may be reset, based on choices from a previous step, so steps are expected to be visited in order. The new isVisitRequired prop lets users jump to any step, but it also allows steps to be visited out of order.

For v4, we used the step's isDisabled prop to achieve the desired behavior below. For example, while the step is greater than the current step index, it remains disabled. After clicking the next button, we were able to update the isDisabled prop based on the new step.

The v5 wizard closes immediately, after clicking the next button, while the next steps are disabled. We're not able to update the isDisabled prop, unlike with the v4 wizard.

Desired behavior
chrome-capture-2024-5-21

Sandbox
https://codesandbox.io/p/sandbox/wizard-5zt7tj

@dlabrecq dlabrecq added the bug label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant