From ac361705d4d300a3abeb191699b0c685d89cb562 Mon Sep 17 00:00:00 2001 From: Victoria Sloan Date: Sun, 6 Sep 2020 22:58:47 +0100 Subject: [PATCH] changing UIkit dropdown to use bbui popover --- .../ComponentDropdownMenu.svelte | 49 ++++--------------- 1 file changed, 10 insertions(+), 39 deletions(-) diff --git a/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte b/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte index b120ca549b..5ffb86b4b3 100644 --- a/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte +++ b/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte @@ -4,7 +4,6 @@ import { getComponentDefinition } from "builderStore/storeUtils" import ConfirmDialog from "components/common/ConfirmDialog.svelte" import { last, cloneDeep } from "lodash/fp" - import UIkit from "uikit" import { selectComponent, getParent, @@ -13,20 +12,14 @@ regenerateCssForCurrentScreen, } from "builderStore/storeUtils" import { uuid } from "builderStore/uuid" + import { Popover } from "@budibase/bbui" export let component let confirmDeleteDialog - let dropdownEl + let dropdown - $: dropdown = UIkit.dropdown(dropdownEl, { - mode: "click", - offset: 0, - pos: "bottom-right", - "delay-hide": 0, - animation: false, - }) - $: dropdown && UIkit.util.on(dropdown, "shown", () => (hidden = false)) + console.log("hisisis") $: noChildrenAllowed = !component || !getComponentDefinition($store, component._component).children $: noPaste = !$store.componentToPaste @@ -119,7 +112,12 @@ - +