Type inference of useTemplateRef
won't work if there're leading whitespaces.
#4828
Labels
useTemplateRef
won't work if there're leading whitespaces.
#4828
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: