auto-resize the textarea on mount based on its current value
This commit is contained in:
parent
b1c70e2e54
commit
e27ecab7d1
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
onMount(() => {
|
||||
if (textareaElement) {
|
||||
autoResizeTextarea(textareaElement);
|
||||
textareaElement.focus();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue