Skip to content
Snippets Groups Projects
Commit 0b39dbaa authored by jensmjahle's avatar jensmjahle
Browse files

Fix build error

parent 68faf9c2
No related branches found
No related tags found
1 merge request!73Wcag improvements
...@@ -82,14 +82,13 @@ const handleFileChange = (event: any) => { ...@@ -82,14 +82,13 @@ const handleFileChange = (event: any) => {
} }
reader.readAsDataURL(file) reader.readAsDataURL(file)
} }
const fileInput = ref(null); const fileInput = ref<HTMLInputElement | null>(null);
const openFileExplorer = () => { const openFileExplorer = () => {
if (fileInput.value) { if (fileInput.value instanceof HTMLInputElement) {
fileInput.value.click(); fileInput.value.click();
} }
}; };
</script> </script>
<template> <template>
......
...@@ -105,14 +105,13 @@ const handleFileChange = (event: any) => { ...@@ -105,14 +105,13 @@ const handleFileChange = (event: any) => {
reader.readAsDataURL(file) reader.readAsDataURL(file)
} }
const fileInput = ref(null); const fileInput = ref<HTMLInputElement | null>(null);
const openFileExplorer = () => { const openFileExplorer = () => {
if (fileInput.value) { if (fileInput.value instanceof HTMLInputElement) {
fileInput.value.click(); fileInput.value.click();
} }
}; };
</script> </script>
<template> <template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment