From 22bc80651b5625ccfb502395ecf763b167f26989 Mon Sep 17 00:00:00 2001 From: Olabode-Odebunmi Oluwaseeni <64348042+seeniOlabode@users.noreply.github.com> Date: Mon, 14 Oct 2024 08:12:36 +0100 Subject: [PATCH] docs: improve clarity on using refs (#3051) --- 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 ab8ec683..fcae3f13 100644 --- a/src/guide/essentials/template-refs.md +++ b/src/guide/essentials/template-refs.md @@ -148,6 +148,8 @@ onMounted(() => console.log(itemRefs.value))
Utilisation avant 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