Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit c176025

Browse files
authored
Fix textarea might be null
1 parent 28a16e1 commit c176025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte-materialify/src/components/Textarea/Textarea.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
if (!validateOnBlur) validate();
6161
}
6262
63-
$: if (autogrow) {
63+
$: textarea && if (autogrow) {
6464
textarea.style.height = 'auto';
6565
textarea.style.height = `${textarea.scrollHeight}px`;
6666
}

0 commit comments

Comments
 (0)