From a1debf402fda5be3bf02bd7bb3f843bd97d6410a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 10 Jun 2021 11:17:14 +0100 Subject: [PATCH] Fully remount update forms when initial values change --- .../standard-components/src/forms/Form.svelte | 187 ++---------------- .../src/forms/InnerForm.svelte | 185 +++++++++++++++++ 2 files changed, 200 insertions(+), 172 deletions(-) create mode 100644 packages/standard-components/src/forms/InnerForm.svelte diff --git a/packages/standard-components/src/forms/Form.svelte b/packages/standard-components/src/forms/Form.svelte index 327cc70572..1785d1180b 100644 --- a/packages/standard-components/src/forms/Form.svelte +++ b/packages/standard-components/src/forms/Form.svelte @@ -1,8 +1,6 @@ - -
- {#if loaded} - - {/if} -
-
- - + + +{/key} diff --git a/packages/standard-components/src/forms/InnerForm.svelte b/packages/standard-components/src/forms/InnerForm.svelte new file mode 100644 index 0000000000..70f5c2e3a9 --- /dev/null +++ b/packages/standard-components/src/forms/InnerForm.svelte @@ -0,0 +1,185 @@ + + + +
+ {#if loaded} + + {/if} +
+
+ +