-
Notifications
You must be signed in to change notification settings - Fork 376
Description
Describe the problem
When a Wizard has a parent step with sub-steps where the first sub-step is hidden (isHidden={true}), clicking on the parent step in the navigation causes the application to crash with:
Uncaught TypeError: can't access property "status", activeStep is undefined
How do you reproduce the problem?
- Create a Wizard with a parent step containing multiple sub-steps
- Set isHidden={true} on the first sub-step
- Navigate past the parent step to a later step
- Click on the parent step in the navigation
<Wizard>
<WizardStep id="step-1" name="Step 1" />
<WizardStep
id="step-2"
name="Parent Step"
steps={[
<WizardStep id="sub-1" name="Hidden Sub Step" isHidden={true} />,
<WizardStep id="sub-2" name="Visible Sub Step" />,
]}
/>
<WizardStep id="step-3" name="Step 3" />
</Wizard>
Navigate to "Step 3", then click on "Parent Step" → crash
The downstream issue also has a description on how to reproduce the problem with cockpit-image-builder in Fedora: osbuild/image-builder-frontend#3909
Expected behavior
Clicking on the parent step should navigate to the first visible sub-step (sub-2 in the example above).
Is this issue blocking you?
We could work around this problem downstream, here's a potential fix: https://github.com/ochosi/image-builder-frontend/tree/fix-wizard-crash
Screenshots
See the downstream issue for a screenshot: osbuild/image-builder-frontend#3909
What is your environment?
- OS: Fedora 43
- Browser: Firefox
- Version: 145
What is your product and what release date are you targeting?
cockpit-image-builder is targeting RHEL 10.2, so Jan 2026.
Any other information?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status