We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
useTemplateRef
2.1.6
1.92
3.5
5.5
No response
Given the example below:
<script setup lang="ts"> import { useTemplateRef } from 'vue' const ref1 = useTemplateRef('input') const ref2 = useTemplateRef( 'input') </script> <template> <input ref="input"> </template>
Note that there're additional whitespaces before ref name in the second useTemplateRef call.
Type inference of both useTemplateRefs works.
<input>
unknown
Trailing whitespaces after ref name won't cause this bug.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Vue - Official extension or vue-tsc version
2.1.6
VSCode version
1.92
Vue version
3.5
TypeScript version
5.5
System Info
No response
package.json dependencies
No response
Steps to reproduce
Given the example below:
Note that there're additional whitespaces before ref name in the second
useTemplateRef
call.What is expected?
Type inference of both
useTemplateRef
s works.What is actually happening?
useTemplateRef
works, which can obtain attributes of<input>
element.unknown
.Link to minimal reproduction
No response
Any additional comments?
Trailing whitespaces after ref name won't cause this bug.
The text was updated successfully, but these errors were encountered: