We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
useTemplateRef
1 parent e73fcc8 commit 999030dCopy full SHA for 999030d
2 files changed
app/pages/[...package].vue
@@ -338,7 +338,7 @@ async function copyInstallCommand() {
338
339
// Expandable description
340
const descriptionExpanded = ref(false)
341
-const descriptionRef = ref<HTMLDivElement>()
+const descriptionRef = useTemplateRef('descriptionRef')
342
const descriptionOverflows = ref(false)
343
344
// Check if description overflows on mount/update
app/pages/search.vue
@@ -46,7 +46,7 @@ watch(
46
47
// For glow effect
48
const isSearchFocused = ref(false)
49
-const searchInputRef = ref<HTMLInputElement>()
+const searchInputRef = useTemplateRef('searchInputRef')
50
51
const selectedIndex = ref(0)
52
const packageListRef = useTemplateRef('packageListRef')
0 commit comments