fix(text-area): counter supports null value (#2089)

This commit is contained in:
bartosjiri ⚡ 2025-01-22 20:16:18 +01:00 committed by GitHub
commit 76eec84c54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>