Stepper: activateCallback has incorrect signature #6225
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
In the documentation it shows you can pass a panel value to the
activateCallback
function when changing the page, however in the types it is defined as() => void
, which has meant to get a clean transpilation I have to use a wrapper function that takesactivateCallback
function asany
and then call it with the panel value.Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-csmupk
PrimeVue version
4.0.4
Vue version
4.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Use typescript and try and call activateCallback from code, then build your project.
I'm not sure why there are also errors about
StepListProps
andStepPanelProps
in the stackblitz, but you can see the error in question:Expected behavior
Project builds cleanly.
The text was updated successfully, but these errors were encountered: