refactor(text-area): use native binding for value prop (#1169)

This commit is contained in:
metonym 2022-03-13 19:02:02 -07:00 committed by GitHub
commit 59ecc53a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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