diff --git a/packages/builder/package.json b/packages/builder/package.json index d0eb37220f..835a9812af 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -70,6 +70,7 @@ "safe-buffer": "^5.1.2", "shortid": "^2.2.8", "string_decoder": "^1.2.0", + "svelte-portal": "^0.1.0", "svelte-simple-modal": "^0.4.2", "uikit": "^3.1.7" }, diff --git a/packages/builder/src/components/userInterface/DesignView.svelte b/packages/builder/src/components/userInterface/DesignView.svelte index 7bca352bd1..5cc65ec214 100644 --- a/packages/builder/src/components/userInterface/DesignView.svelte +++ b/packages/builder/src/components/userInterface/DesignView.svelte @@ -1,16 +1,27 @@ @@ -92,45 +108,49 @@ bind:this={select} class="bb-select-container" on:click={() => toggleSelect(!open)}> -
+
{displayLabel}
-
-
    - {#if isOptionsObject} - {#each options as { value: v, label }} -
  • - {label} -
  • - {/each} - {:else} - {#each options as v} -
  • - {v} -
  • - {/each} - {/if} -
-
+ {#if open} + +
+
    + {#if isOptionsObject} + {#each options as { value: v, label }} +
  • + {label} +
  • + {/each} + {:else} + {#each options as v} +
  • + {v} +
  • + {/each} + {/if} +
+
+
toggleSelect(false)} class="overlay" /> + + {/if}
-{#if open} -
toggleSelect(false)} class="overlay" /> -{/if}