Property 'onInputClick' does not exist on type { $props: DatePickerProps & VNodeProps }
#12867
Unanswered
martinszeltins
asked this question in
Help/Questions
Replies: 2 comments 1 reply
-
Likely related to vuejs/language-tools#5166. If you remove the |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think there is an issue with the type definition of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Vue version
3.5.13
Link to minimal reproduction
https://stackblitz.com/~/github.com/martinszeltins/template-ref-test
Steps to reproduce
I wanted to use
useTemplateRef
on a component instance but I am getting this type error:What is interesting is that the function
onInputClick
actually does exist on the Date Picker and it works too. But my IDE and type checker throws an error. I also tried to useComponentPublicInstance
but that didn't work either.app.vue
What is expected?
It should properly recognize the type that
datePickerEl
is a component instance ofDatePicker
which has functions that can be called.What is actually happening?
Getting type error
System Info
Any additional comments?
No response
Beta Was this translation helpful? Give feedback.
All reactions