Open BenJackGill opened 3 months ago
I'm guessing the problem is more widespread, because I have also found the same issue with these other components, and there are probably more cases then this:
DatePicker
(previously named Calendar
in v3)AutoComplete
Agreed. Thank you for the workaround, but, as a new user of PrimeVue, this drove me crazy for a bit trying to figure out.
Describe the bug
I am migrating from V3 to V4.
As per the migration docs the
OverlayPanel
has been renamed toPopover
.Previously I was using a template ref for the
OverlayPanel
with TypeScript support like this:But when switching to the renamed
Popover
that solution no longer works:It now throws this TypeScript error:
One workaround is to use this, but it's a hassle and bad ergonomics:
Would love to have the proper types again please.
Note: I have provided a Stackblitz but the TypeScript error is not visible there. See screenshot below for the IDE error:
Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-z5eubn?file=src%2FApp.vue
PrimeVue version
4.0.2
Vue version
4.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response