You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When declaring a click handler on a v-btn or a v-app-bar-nav-icon without any other props, I get error TS2559: Type '{ onClick: any; }' has no properties in common with type '{ symbol?: any; replace?: boolean | undefined; flat?: boolean | undefined; exact?: boolean | undefined; block?: boolean | undefined; active?: boolean | undefined; style?: StyleValue | undefined; ... 47 more ...; "v-slot:loader"?: false | ... 1 more ... | undefined; }'.
Expected Behavior
No error is shown when using <v-btn @click="() => {}">
This is still an issue with Vue 3.3.8 and Vuetify 3.4.0, although the duplicate was closed and marked as wontfix, so I'm not sure if this is also in the same boat.
Environment
Vuetify Version: 3.3.0
Vue Version: 3.3.4
Browsers: Firefox 113.0
OS: Windows 10
Steps to reproduce
When declaring a click handler on a
v-btn
or av-app-bar-nav-icon
without any other props, I geterror TS2559: Type '{ onClick: any; }' has no properties in common with type '{ symbol?: any; replace?: boolean | undefined; flat?: boolean | undefined; exact?: boolean | undefined; block?: boolean | undefined; active?: boolean | undefined; style?: StyleValue | undefined; ... 47 more ...; "v-slot:loader"?: false | ... 1 more ... | undefined; }'
.Expected Behavior
No error is shown when using
<v-btn @click="() => {}">
Actual Behavior
Type error mentioned above
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
It could be related to vuejs/language-tools#3122 but I'm not sure how to investigate further, and the error seems to be different.
The text was updated successfully, but these errors were encountered: