From d94e3cefb252cb141a5ff731d18f9c1d369110bd Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Sun, 1 Feb 2026 11:56:39 +0300 Subject: [PATCH] feat(SearchBar): move away from popover due to unnecessary complication and ux problems --- src/shared/ui/SearchBar/SearchBar.svelte | 88 ++++++++++-------------- 1 file changed, 35 insertions(+), 53 deletions(-) diff --git a/src/shared/ui/SearchBar/SearchBar.svelte b/src/shared/ui/SearchBar/SearchBar.svelte index 09abb16..a6f2d52 100644 --- a/src/shared/ui/SearchBar/SearchBar.svelte +++ b/src/shared/ui/SearchBar/SearchBar.svelte @@ -7,14 +7,8 @@ --> - - - {#snippet child({ props })} - {@const { onclick, ...rest } = props} -
- {#if label} - - {/if} - -
- {/snippet} -
- - e.preventDefault()} - onInteractOutside={(e => { - if (e.target === triggerRef) { - e.preventDefault(); - } - })} - class="w-(--bits-popover-anchor-width) min-w-(--bits-popover-anchor-width) md:rounded-2xl" - > - {@render children?.({ id: contentId })} - -
+
+
+ +
+ +