Skip to content

Commit

Permalink
fix: textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Sep 5, 2024
1 parent b3b8a5a commit 2fdacf3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2/pink-sb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appwrite.io/pink-svelte",
"version": "1.0.0-next.32",
"version": "1.0.0-next.33",
"scripts": {
"dev": "storybook dev -p 6006",
"dev:package": "svelte-kit sync && svelte-package --watch",
Expand Down
11 changes: 10 additions & 1 deletion v2/pink-sb/src/lib/input/Textarea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,16 @@
class:warning={state === 'warning'}
class:error={state === 'error'}
>
<textarea on:change bind:value {disabled} {maxlength} {id} {...$$restProps} />
<textarea
on:input
on:invalid
on:change
bind:value
{disabled}
{maxlength}
{id}
{...$$restProps}
/>
{#if maxlength}
<span class="limits">{value?.length ?? 0}/{maxlength}</span>
{/if}
Expand Down

0 comments on commit 2fdacf3

Please sign in to comment.