-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
attribute inheritance when strictTemplates enabled #4699
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
Comments
Might be fixed by #4103 |
@KazariEX What about |
@Doeke This is actually caused by the |
KermanX
changed the title
Errors with strictTemplates enabled (id, title, aria-label, click)
attribute inheritance when strictTemplates enabled
Aug 17, 2024
johnsoncodehk
added
the
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
label
Aug 25, 2024
johnsoncodehk
added a commit
to so1ve/language-tools
that referenced
this issue
Aug 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
Vue - Official extension or vue-tsc version
2.0.21
VSCode version
1.92.2
Vue version
3.4.29
TypeScript version
5.4.0
System Info
Steps to reproduce
Enable
strictTemplates: true
and run type-check on vue templates that contain certain fallthrough attributes/events likeid
on a component:<HelloWorld msg="You did it!" id="4" />
The other attributes that don't work are
title
andaria-*
attributes.Another problem is with the
@click
event listener on components that usedefineModel
(see repro link)What is expected?
No typechecking errors are expected as attributes like
id
andaria-label
should be treated as allowed fallthrough attributes.What is actually happening?
Type check fails with errors (
Object literal may only specify known properties
):Link to minimal reproduction
https://github.com/Doeke/bug-stricttemplates
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: