From cfa4b118c2bb8632e408700a21b073c00a9d8cd7 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 15 Apr 2021 19:43:18 +0100 Subject: [PATCH] Update some standard components form components to use generic BBUI core components --- .../src/forms/OptionsField.svelte | 4 +- .../src/forms/RelationshipField.svelte | 70 +++++-------------- .../src/forms/StringField.svelte | 4 +- 3 files changed, 22 insertions(+), 56 deletions(-) diff --git a/packages/standard-components/src/forms/OptionsField.svelte b/packages/standard-components/src/forms/OptionsField.svelte index 6117f6f35a..c3889fe831 100644 --- a/packages/standard-components/src/forms/OptionsField.svelte +++ b/packages/standard-components/src/forms/OptionsField.svelte @@ -1,5 +1,5 @@ @@ -98,12 +60,16 @@ bind:fieldApi bind:fieldSchema defaultValue={[]}> - option._id} /> + {#if fieldState} + option._id} /> + {/if} diff --git a/packages/standard-components/src/forms/StringField.svelte b/packages/standard-components/src/forms/StringField.svelte index 3f556201ea..26895710fb 100644 --- a/packages/standard-components/src/forms/StringField.svelte +++ b/packages/standard-components/src/forms/StringField.svelte @@ -1,5 +1,5 @@