Add default value for longform field

This commit is contained in:
Andrew Kingston 2021-08-04 14:33:23 +01:00
parent f1f08dd85d
commit 12d5ccb3a7
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
export let label export let label
export let placeholder export let placeholder
export let disabled = false export let disabled = false
export let defaultValue = ""
let fieldState let fieldState
let fieldApi let fieldApi
@ -15,10 +16,10 @@
{label} {label}
{field} {field}
{disabled} {disabled}
{defaultValue}
type="longform" type="longform"
bind:fieldState bind:fieldState
bind:fieldApi bind:fieldApi
defaultValue=""
> >
{#if fieldState} {#if fieldState}
<CoreTextArea <CoreTextArea