mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
refactor(text-area): use native binding for value prop (#1169)
This commit is contained in:
parent
bc8903a67b
commit
59ecc53a89
1 changed files with 1 additions and 4 deletions
|
@ -94,6 +94,7 @@
|
|||
{/if}
|
||||
<textarea
|
||||
bind:this="{ref}"
|
||||
bind:value
|
||||
aria-invalid="{invalid || undefined}"
|
||||
aria-describedby="{invalid ? errorId : undefined}"
|
||||
disabled="{disabled}"
|
||||
|
@ -101,7 +102,6 @@
|
|||
name="{name}"
|
||||
cols="{cols}"
|
||||
rows="{rows}"
|
||||
value="{value ?? ''}"
|
||||
placeholder="{placeholder}"
|
||||
readonly="{readonly}"
|
||||
class:bx--text-area="{true}"
|
||||
|
@ -111,9 +111,6 @@
|
|||
{...$$restProps}
|
||||
on:change
|
||||
on:input
|
||||
on:input="{({ target }) => {
|
||||
value = target.value;
|
||||
}}"
|
||||
on:keydown
|
||||
on:keyup
|
||||
on:focus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue