We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useTemplateRef
1 parent 9a001d0 commit 2fd341dCopy full SHA for 2fd341d
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