-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed as duplicate of#12749
Description
Vue version
3.5.13
Link to minimal reproduction
Steps to reproduce
There are two template refs available to the input.
What is expected?
While technically being correct, the code example from the playground is probably not what the (new) user intended.
New users will probably start using useTemplateRef and may fall into the trap of defining another ref with a name which is equal to the ref on the HTML Input element. This is confusing, and I think this usage was removed from the docs as well (not sure).
It would be better if the compiler would catch this case and issue a warning for last template ref, suggesting to rename/remove it.
Metadata
Metadata
Assignees
Labels
No labels