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