Skip to content

Commit

Permalink
fix(text-area): counter supports null value (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartosjiri authored Jan 22, 2025
1 parent c1ace1c commit 76eec84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextArea/TextArea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</label>
{#if maxCount}
<div class:bx--label={true} class:bx--label--disabled={disabled}>
{value.length}/{maxCount}
{(value ?? "").length}/{maxCount}
</div>
{/if}
</div>
Expand Down

0 comments on commit 76eec84

Please sign in to comment.