From 246d89b68030e1f329f17299e866803974c3cc08 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 4 Aug 2021 14:33:51 +0100 Subject: [PATCH] Add default options for options field --- packages/standard-components/src/forms/OptionsField.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/standard-components/src/forms/OptionsField.svelte b/packages/standard-components/src/forms/OptionsField.svelte index 659326bb34..18debfb23d 100644 --- a/packages/standard-components/src/forms/OptionsField.svelte +++ b/packages/standard-components/src/forms/OptionsField.svelte @@ -7,6 +7,7 @@ export let placeholder export let disabled = false export let optionsType = "select" + export let defaultValue let fieldState let fieldApi @@ -17,6 +18,7 @@ {field} {label} {disabled} + {defaultValue} type="options" bind:fieldState bind:fieldApi