From 12d5ccb3a744abd4434cc224133698defd96d32e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 4 Aug 2021 14:33:23 +0100 Subject: [PATCH] Add default value for longform field --- packages/standard-components/src/forms/LongFormField.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/standard-components/src/forms/LongFormField.svelte b/packages/standard-components/src/forms/LongFormField.svelte index 45ea6aa034..231c247197 100644 --- a/packages/standard-components/src/forms/LongFormField.svelte +++ b/packages/standard-components/src/forms/LongFormField.svelte @@ -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}