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: activateCallback has incorrect signature #6225

Closed
damoxc opened this issue Aug 13, 2024 · 0 comments
Closed

Stepper: activateCallback has incorrect signature #6225

damoxc opened this issue Aug 13, 2024 · 0 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@damoxc
Copy link

damoxc commented Aug 13, 2024

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 takes activateCallback function as any 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 and StepPanelProps in the stackblitz, but you can see the error in question:

src/App.vue:45:38 - error TS2554: Expected 0 arguments, but got 1.

45             @click="activateCallback('2')"

Expected behavior

Project builds cleanly.

@damoxc damoxc added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 13, 2024
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 20, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.0.5 milestone Aug 20, 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 bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants