Skip to content

Typo in Template Refs documentation example ("inputRef" should be "input") #3064

@Jiangmenghao

Description

@Jiangmenghao

Hello Vue team,

I was reading through the Template Refs documentation and noticed a small typo in the example code provided. The code snippet uses input as the name of the template ref in the <script setup> block, but the text in the documentation refers to inputRef.value, which does not exist in the provided example.

Screenshot 2024-10-14 at 6 14 43 PM

It appears that inputRef.value should instead be input.value to align with the example code. If my opinion seems correct, I will submit a Pull Request shortly to address the issue.

Thank you for your time and for the great work on Vue.js!

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions