From 3fc925278822664dada4b70380217e03f73cbcec Mon Sep 17 00:00:00 2001 From: Seeni Date: Fri, 4 Oct 2024 23:52:13 +0100 Subject: [PATCH] docs: improve clarity on using refs --- src/guide/essentials/template-refs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/guide/essentials/template-refs.md b/src/guide/essentials/template-refs.md index f613c2ab66..8db405a842 100644 --- a/src/guide/essentials/template-refs.md +++ b/src/guide/essentials/template-refs.md @@ -148,6 +148,8 @@ onMounted(() => console.log(itemRefs.value))
Usage before 3.5 +In versions before 3.5 where `useTemplateRef()` was not introduced, we need to declare a ref with a name that matches the template ref attribute's value. The ref should also contain an array value: + ```vue