fix(web): auto grow area extend when there is no content (#12197)

* fix(web): text area expand when there is no description

* use correct content
This commit is contained in:
Alex 2024-09-02 14:41:19 -05:00 committed by GitHub
parent 174de979db
commit 59507e557e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
// re-visit with svelte 5. runes will make this better.
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
newContent;
if (textarea) {
if (textarea && newContent.length > 0) {
void tick().then(() => autoGrowHeight(textarea));
}
}