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 @@ } -