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

[Bug Report][3.1.15] VTextField update:focused event type issue #17197

Closed
mdoesburg opened this issue Apr 21, 2023 · 0 comments · Fixed by #17237
Closed

[Bug Report][3.1.15] VTextField update:focused event type issue #17197

mdoesburg opened this issue Apr 21, 2023 · 0 comments · Fixed by #17237
Assignees
Labels
T: bug Functionality that does not work as intended/expected typescript

Comments

@mdoesburg
Copy link

mdoesburg commented Apr 21, 2023

Environment

Vuetify Version: 3.1.15
Last working version: 3.1.14
Vue Version: 3.2.47
Browsers: Chrome 112.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

Worked before this commit: 42c0b4d

  1. Use Vuetify + TypeScript + Volar
  2. See TypeScript error when trying to use @update:focused on the v-text-field component (see reproduction link)

This might be an issue with other component focused events too.

Expected Behavior

I expect the event type to be inferred correctly.

Actual Behavior

TypeScript/Volar is reporting the following issue:

Type '(focus: boolean) => void' is not assignable to type 'EventProp<[FocusEvent], (args_0: FocusEvent) => any> & ((focused: boolean) => any)'.
  Type '(focus: boolean) => void' is not assignable to type '((args_0: FocusEvent) => any) & ((focused: boolean) => any)'.

image

Using version v3.1.14:

image

Reproduction Link

https://play.vuetifyjs.com/#...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Functionality that does not work as intended/expected typescript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants