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

Stepper: onChangeStep function not initially set #6949

Closed
ctussey-ls opened this issue Jul 29, 2024 · 0 comments · Fixed by #6982 or leoo1992/GeradorQRCode#85
Closed

Stepper: onChangeStep function not initially set #6949

ctussey-ls opened this issue Jul 29, 2024 · 0 comments · Fixed by #6982 or leoo1992/GeradorQRCode#85
Labels
good first issue *** Welcome to PrimeReact Family! *** Good issue! Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@ctussey-ls
Copy link

Describe the bug

The Stepper component does not initially have the onChangeStep function set which results in a warning message "Unknown event handler property onChangeStep. It will be ignored."

Once the component has rendered and changes are performed, the component works as normal.

Reproducer

https://stackblitz.com/edit/8ur8c3?file=src%2FApp.jsx

System Information

System:
OS: Windows 11 10.0.22631
CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-1370P
Memory: 5.65 GB / 31.66 GB
Binaries:
Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.22621.3527
npmPackages:
primereact: ^10.8.0 => 10.8.0
react: ^18 => 18.2.0

Steps to reproduce the behavior

  1. Add the Stepper Component
  2. Set the prop onChangeSet={(step) => console.log(step)}

Expected behavior

No response

@ctussey-ls ctussey-ls added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 29, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. good first issue *** Welcome to PrimeReact Family! *** Good issue! and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jul 29, 2024
meddvedev added a commit to meddvedev/primereact that referenced this issue Aug 3, 2024
@melloware melloware added this to the 10.8.1 milestone Aug 3, 2024
melloware added a commit that referenced this issue Aug 3, 2024
* Fix #6949: Stepper: onChangeStep function not initially set

* Update components/lib/stepper/StepperBase.js

---------

Co-authored-by: Melloware <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue *** Welcome to PrimeReact Family! *** Good issue! Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
2 participants