Skip to content

Commit 76eec84

Browse files
authored
fix(text-area): counter supports null value (#2089)
1 parent c1ace1c commit 76eec84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TextArea/TextArea.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</label>
8686
{#if maxCount}
8787
<div class:bx--label={true} class:bx--label--disabled={disabled}>
88-
{value.length}/{maxCount}
88+
{(value ?? "").length}/{maxCount}
8989
</div>
9090
{/if}
9191
</div>

0 commit comments

Comments
 (0)