Fix focus on comment component

This commit is contained in:
Sebastian Martinez
2024-11-06 13:26:29 +01:00
parent 4428a4576c
commit 93e2770d6d
+4 -1
View File
@@ -58,9 +58,12 @@
textareaElement.style.height = `0px`;
textareaElement.style.height = `${textareaElement.scrollHeight}px`;
}
});
$effect(() => {
if (textareaElement && focus) {
textareaElement.focus();
focussed = false;
focus = false;
}
});