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] TS props error on custom HTML attributes (id, data-testid) #17196

Closed
lucaspagliari1bigmedia opened this issue Apr 20, 2023 · 6 comments
Labels
duplicate The issue has already been reported

Comments

@lucaspagliari1bigmedia
Copy link

Environment

Vuetify Version: 3.1.15
Vue Version: 3.2.47
Browsers: Chrome 112.0.0.0
OS: Windows 10

Steps to reproduce

Create a component using <script lang="ts"> and assign a custom attribute such as id, type or data-testid, this shows an error on vscode about prop's type

Expected Behavior

Can assign custom attributes to vuetify components, such as id, type, data-testid or test-id

Actual Behavior

Can only assign attributes that are defined on components props

Reproduction Link

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

Other comments

ts error vuetify

@yuwu9145
Copy link
Member

#17082

@lucaspagliari
Copy link

lucaspagliari commented Apr 20, 2023

I've opened this issue with my work account, but i just found another issues related to it in vue.js/language-tools repo

Issue#2636

If anyone had any ideia i'm open to it

@lucaspagliari
Copy link

@yuwu9145 I'll keep an eye on it
thanks!

@mdoesburg
Copy link

mdoesburg commented Apr 21, 2023

Having the same issue while using data-testid and type="submit" on v-btn, and required on v-text-field.

@lucaspagliari
Copy link

lucaspagliari commented Apr 21, 2023

@mdoesburg
if you're using vscode with Volar extension

try downgrading the extension from 1.4 to 1.3.19, it fixes this problem

but this is just a palliative solution... hope it helps ;)

@KaelWD
Copy link
Member

KaelWD commented Apr 21, 2023

Duplicate of #17069

@KaelWD KaelWD marked this as a duplicate of #17069 Apr 21, 2023
@KaelWD KaelWD closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2023
@KaelWD KaelWD added the duplicate The issue has already been reported label Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The issue has already been reported
Projects
None yet
Development

No branches or pull requests

5 participants