This commit is contained in:
Timothy J. Baek 2024-10-24 03:10:17 -07:00
parent 587dab23f0
commit c5d974606f

View File

@ -15,6 +15,7 @@
onMount(async () => { onMount(async () => {
await tick(); await tick();
if (textareaElement) { if (textareaElement) {
await tick();
setTimeout(adjustHeight, 0); setTimeout(adjustHeight, 0);
} }
}); });
@ -32,6 +33,7 @@
bind:value bind:value
{placeholder} {placeholder}
on:input={adjustHeight} on:input={adjustHeight}
on:focus={adjustHeight}
class={className} class={className}
{rows} {rows}
{required} {required}