-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Stepper: onChange function doesn't work #6475
Comments
In the code, buttons manually controlling the navigation between steps using the If you want to execute some code when the step changes, you could do this within the
|
also, I'm unable to access state through the ref, the only available functions it reveals are next previous and get element |
Submitted a PR to add |
Hi, I'm facing this issue too, and I believe that problem is the event name so it must be wrong in documentation ("onChange") or in code ("onChangeStep") , so using "onChangeStep" works correctly but with type errors |
@ivaneliasoo I just fixed it for next release: #6546 |
how to stop navigation from the header @Rekl0w |
Describe the bug
The onChange function doesn't do anything. Also would be nice to have access to total steps and maybe last, previous, next.
Reproducer
https://stackblitz.com/edit/rp5vx5?file=src%2FApp.tsx
PrimeReact version
10.6.3
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: