From 638e7afcc6d9815fa2b2a536a3990f9b42a54efa Mon Sep 17 00:00:00 2001 From: Conor_Mack Date: Sat, 27 Jun 2020 16:56:01 +0100 Subject: [PATCH 1/3] WIP: Select Scroll - Problems on scroll --- packages/builder/package.json | 1 + .../userInterface/DesignView.svelte | 13 +- .../userInterface/OptionSelect.svelte | 113 +++++++++++------- 3 files changed, 80 insertions(+), 47 deletions(-) diff --git a/packages/builder/package.json b/packages/builder/package.json index dd449b2256..7fe768be6b 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 @@ @@ -112,13 +112,15 @@ {displayLabel} + {#if open}
+ on:keydown={handleEscape} + class="bb-select-menu">
    {#if isOptionsObject} {#each options as { value: v, label }} @@ -141,11 +143,10 @@ {/if}
+
toggleSelect(false)} class="overlay" /> + {/if}
-{#if open} -
toggleSelect(false)} class="overlay" /> -{/if}