From 411f96ef4947f5092a04de2faae2f616258ce784 Mon Sep 17 00:00:00 2001 From: Zack Pollard <zackpollard@ymail.com> Date: Sat, 15 Feb 2025 10:44:11 +0100 Subject: [PATCH] fix: place suggestions not clickable in asset set location modal (#16104) Co-authored-by: Alex <alex.tran1502@gmail.com> --- .../shared-components/change-location.svelte | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/src/lib/components/shared-components/change-location.svelte b/web/src/lib/components/shared-components/change-location.svelte index 2b027596f4..5970b91160 100644 --- a/web/src/lib/components/shared-components/change-location.svelte +++ b/web/src/lib/components/shared-components/change-location.svelte @@ -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')} @@ -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