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

Steps component: Unable to control the active step using activeIndex prop #7298

Closed
danalt06 opened this issue Oct 2, 2024 · 0 comments · Fixed by #7300
Closed

Steps component: Unable to control the active step using activeIndex prop #7298

danalt06 opened this issue Oct 2, 2024 · 0 comments · Fixed by #7300
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@danalt06
Copy link

danalt06 commented Oct 2, 2024

Describe the bug

Steps cannot be controlled programmatically using activeIndex, and this also doesn't work on the primereact documentation page: https://primereact.org/steps/#controlled

System Information

"primereact": "10.8.3",
"react": "18.2.0"

Steps to reproduce the behavior

Click the buttons to set an activeIndex of the Steps component and observe the active step not changing as expected.

Expected behavior

Clicking the buttons should change the active index.

@danalt06 danalt06 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 2, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 2, 2024
@melloware melloware added this to the 10.8.4 milestone Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants