mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Fix focus on comment component
This commit is contained in:
@@ -58,9 +58,12 @@
|
||||
textareaElement.style.height = `0px`;
|
||||
textareaElement.style.height = `${textareaElement.scrollHeight}px`;
|
||||
}
|
||||
});
|
||||
|
||||
$effect(() => {
|
||||
if (textareaElement && focus) {
|
||||
textareaElement.focus();
|
||||
focussed = false;
|
||||
focus = false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user