From 3a319fbc7c5b5bd47da1c17411ebf2011301c5d5 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Thu, 5 Mar 2020 16:14:36 +0000 Subject: [PATCH] bugfix: modal getting stuck on open (but hidden) Recreate: Add Datatable component (from) index... try adding new screen... screen dialog does not show --- .../builder/src/common/ConfirmDialog.svelte | 8 +- .../src/userInterface/NewScreen.svelte | 97 +++++++++---------- 2 files changed, 49 insertions(+), 56 deletions(-) diff --git a/packages/builder/src/common/ConfirmDialog.svelte b/packages/builder/src/common/ConfirmDialog.svelte index 5556dd408b..5d1002c483 100644 --- a/packages/builder/src/common/ConfirmDialog.svelte +++ b/packages/builder/src/common/ConfirmDialog.svelte @@ -12,14 +12,16 @@ export let onCancel = () => {} export const show = () => { - UIkit.modal(theModal).show() + uiKitModal.hide() + uiKitModal.show() } export const hide = () => { - UIkit.modal(theModal).hide() + uiKitModal.hide() } let theModal + $: uiKitModal = theModal && UIkit.modal(theModal) const cancel = () => { hide() @@ -32,7 +34,7 @@ } -
+