Skip to content

Commit 08be1cb

Browse files
committed
perf(code-viewer): use useTemplateRef instead deep ref
1 parent 6c4fa64 commit 08be1cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/CodeViewer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const emit = defineEmits<{
99
lineClick: [lineNum: number, event: MouseEvent]
1010
}>()
1111
12-
const codeRef = ref<HTMLElement>()
12+
const codeRef = useTemplateRef('codeRef')
1313
1414
// Generate line numbers array
1515
const lineNumbers = computed(() => {

0 commit comments

Comments
 (0)