From 339992f6567268a72aa79b0f55a2e758c02f76be Mon Sep 17 00:00:00 2001 From: cmack Date: Wed, 4 Dec 2019 21:49:16 +0000 Subject: [PATCH] Fix for field modal infinite render loop once closed from click away --- packages/builder/src/common/Modal.svelte | 80 +++++++++---------- .../builder/src/database/RecordView.svelte | 3 +- 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/packages/builder/src/common/Modal.svelte b/packages/builder/src/common/Modal.svelte index 83479c7596..0f47d553a0 100644 --- a/packages/builder/src/common/Modal.svelte +++ b/packages/builder/src/common/Modal.svelte @@ -1,41 +1,41 @@ - - -
-
- -
-
- - - \ No newline at end of file diff --git a/packages/builder/src/database/RecordView.svelte b/packages/builder/src/database/RecordView.svelte index d0a8f7acdb..b6cf351b40 100644 --- a/packages/builder/src/database/RecordView.svelte +++ b/packages/builder/src/database/RecordView.svelte @@ -39,6 +39,7 @@ store.subscribe($store => { editingField = true; } + onFinishedFieldEdit = (field) => { if(field) { store.saveField(field); @@ -139,7 +140,7 @@ const nameChanged = ev => { {/if} {#if editingField} - + onFinishedFieldEdit(false) }>