From aa02c0ca307a3dec944481d0c95f4345331e14a1 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Thu, 2 Mar 2023 14:30:04 +0000 Subject: [PATCH] fix issue with user searching --- packages/bbui/src/Form/Core/Multiselect.svelte | 2 ++ packages/bbui/src/Form/Core/Picker.svelte | 5 +++-- packages/bbui/src/Form/Multiselect.svelte | 2 ++ .../src/pages/builder/portal/account/auditLogs/index.svelte | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/bbui/src/Form/Core/Multiselect.svelte b/packages/bbui/src/Form/Core/Multiselect.svelte index 8860fcbf0b..1d04c210f4 100644 --- a/packages/bbui/src/Form/Core/Multiselect.svelte +++ b/packages/bbui/src/Form/Core/Multiselect.svelte @@ -15,6 +15,7 @@ export let sort = false export let autoWidth = false export let fetchTerm = null + export let useFetch = false export let customPopoverHeight const dispatch = createEventDispatcher() @@ -86,6 +87,7 @@ isPlaceholder={!value?.length} {autocomplete} bind:fetchTerm + {useFetch} {isOptionSelected} {getOptionLabel} {getOptionValue} diff --git a/packages/bbui/src/Form/Core/Picker.svelte b/packages/bbui/src/Form/Core/Picker.svelte index 104596c8cb..bd575600b1 100644 --- a/packages/bbui/src/Form/Core/Picker.svelte +++ b/packages/bbui/src/Form/Core/Picker.svelte @@ -33,6 +33,7 @@ export let autocomplete = false export let sort = false export let fetchTerm = null + export let useFetch = false export let customPopoverHeight export let align = "left" export let footer = null @@ -150,9 +151,9 @@ > {#if autocomplete} - fetchTerm ? (fetchTerm = event.detail) : (searchTerm = event.detail)} + useFetch ? (fetchTerm = event.detail) : (searchTerm = event.detail)} {disabled} placeholder="Search" /> diff --git a/packages/bbui/src/Form/Multiselect.svelte b/packages/bbui/src/Form/Multiselect.svelte index 2237cd1dce..185eb7069b 100644 --- a/packages/bbui/src/Form/Multiselect.svelte +++ b/packages/bbui/src/Form/Multiselect.svelte @@ -17,6 +17,7 @@ export let autoWidth = false export let autocomplete = false export let fetchTerm = null + export let useFetch = false export let customPopoverHeight const dispatch = createEventDispatcher() @@ -41,6 +42,7 @@ {autocomplete} {customPopoverHeight} bind:fetchTerm + {useFetch} on:change={onChange} on:click /> diff --git a/packages/builder/src/pages/builder/portal/account/auditLogs/index.svelte b/packages/builder/src/pages/builder/portal/account/auditLogs/index.svelte index 739877db26..7b35cfa6b7 100644 --- a/packages/builder/src/pages/builder/portal/account/auditLogs/index.svelte +++ b/packages/builder/src/pages/builder/portal/account/auditLogs/index.svelte @@ -257,6 +257,7 @@