Skip to content

Commit

Permalink
fix: place suggestions not clickable in asset set location modal
Browse files Browse the repository at this point in the history
  • Loading branch information
zackpollard committed Feb 14, 2025
1 parent 5b4f894 commit 285f0ef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions web/src/lib/components/shared-components/change-location.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@
<div class="flex flex-col w-full h-full gap-2">
<div class="relative w-64 sm:w-96">
{#if suggestionContainer}
<div
use:clickOutside={{ onOutclick: () => (hideSuggestion = true) }}
use:listNavigation={suggestionContainer}
>
<div use:listNavigation={suggestionContainer}>
<button type="button" class="w-full" onclick={() => (hideSuggestion = false)}>
<SearchBar
placeholder={$t('search_places')}
Expand All @@ -126,7 +123,12 @@
</div>
{/if}

<div class="absolute z-[99] w-full" id="suggestion" bind:this={suggestionContainer}>
<div
class="absolute z-[99] w-full"
id="suggestion"
bind:this={suggestionContainer}
use:clickOutside={{ onOutclick: () => (hideSuggestion = true) }}
>
{#if !hideSuggestion}
{#each suggestedPlaces as place, index}
<button
Expand Down

0 comments on commit 285f0ef

Please sign in to comment.