diff --git a/packages/builder/src/components/common/bindings/BindingSidePanel.svelte b/packages/builder/src/components/common/bindings/BindingSidePanel.svelte index d990451005..4c54ef2698 100644 --- a/packages/builder/src/components/common/bindings/BindingSidePanel.svelte +++ b/packages/builder/src/components/common/bindings/BindingSidePanel.svelte @@ -3,6 +3,7 @@ import { convertToJS } from "@budibase/string-templates" import { Input, Layout, Icon, Popover } from "@budibase/bbui" import { handlebarsCompletions } from "constants/completions" + import { tick } from "svelte" export let addHelper export let addBinding @@ -12,6 +13,7 @@ export let context = null let search = "" + let searching = false let popover let popoverAnchor let hoverTarget @@ -112,6 +114,17 @@ hideTimeout = null } } + + const startSearching = async () => { + searching = true + search = "" + } + + const stopSearching = e => { + e.stopPropagation() + searching = false + search = "" + } - - + + + - - { - search = null - }} - class:searching={search} - > - - + {:else} +
Bindings
+ + {/if} {/if} - {#if !selectedCategory && !search}