fix(typing): ensure HTMLElement refs (#918)

This commit is contained in:
Dominik Pschenitschni
2025-06-11 14:36:31 +02:00
committed by GitHub
parent 4739be04f6
commit 40fb4b214e
2 changed files with 4 additions and 4 deletions

View File

@@ -24,9 +24,9 @@ const state = ref<StateType>('unfocused')
const val = ref<string>('')
const model = defineModel<string>()
const suggestionScrollerRef = ref<HTMLInputElement | null>(null)
const containerRef = ref<HTMLInputElement | null>(null)
const editorRef = ref<HTMLInputElement | null>(null)
const suggestionScrollerRef = ref<HTMLElement | null>(null)
const containerRef = ref<HTMLElement | null>(null)
const editorRef = ref<HTMLTextAreaElement | null>(null)
watch(
() => model.value,

View File

@@ -103,7 +103,7 @@ const router = useRouter()
// newTaskInput.value.focus()
// })
const taskAdd = ref<HTMLTextAreaElement | null>(null)
const taskAdd = ref<HTMLElement | null>(null)
const taskAddHovered = useElementHover(taskAdd)
const errorMessage = ref('')