Skip to content

Commit ce2fbb2

Browse files
committed
prevent map/player search dropdowns from appearing underneath other page elements
1 parent 6f1acb1 commit ce2fbb2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/SearchBoxMap.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
@click="showAutoCompleteDropdown = true"
4343
:placeholder = "props.placeholder"
4444
class="rounded-lg bg-main-800 text-left border border-transparent focus-within:border-main-50 py-2 px-3 text-sm leading-5 text-gray-200 placeholder:text-gray-500 outline-none">
45-
<div class="absolute top-full w-full rounded-lg bg-main-900 border border-main-100 text-sm text-gray-300 mt-1 py-2 px-2 shadow-xl/20 hidden group-focus-within:block" v-if="showAutoCompleteDropdown && currentInput">
45+
<div class="absolute top-full w-full rounded-lg bg-main-900 border border-main-100 text-sm text-gray-300 mt-1 py-2 px-2 shadow-xl/20 hidden group-focus-within:block z-[999]" v-if="showAutoCompleteDropdown && currentInput">
4646
<loadWheel v-if="isLoading" class="text-gray-300 flex mx-auto w-6 h-6"></loadWheel>
4747
<router-link v-else v-for="(result, index) in autoCompleteResults.slice(0, 6)" :to="{path:`/maps/${result}/?${params}`, query:urlParams.getAsObject()}" :key="index"
4848
@click="$emit('updateMap', result); showAutoCompleteDropdown = false"

src/components/SearchBoxPlayer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
@click="showAutoCompleteDropdown = true"
4343
:placeholder = "props.placeholder"
4444
class="rounded-lg bg-main-800 text-left border border-transparent focus-within:border-main-50 py-2 px-3 text-sm leading-5 text-gray-200 placeholder:text-gray-500 outline-none">
45-
<div class="absolute top-full w-full rounded-lg bg-main-900 border border-main-100 text-sm text-gray-300 mt-1 py-2 px-2 shadow-xl/20 hidden group-focus-within:block" v-if="showAutoCompleteDropdown && currentInput">
45+
<div class="absolute top-full w-full rounded-lg bg-main-900 border border-main-100 text-sm text-gray-300 mt-1 py-2 px-2 shadow-xl/20 hidden group-focus-within:block z-[999]" v-if="showAutoCompleteDropdown && currentInput">
4646
<loadWheel v-if="isLoading" class="text-gray-300 flex mx-auto w-6 h-6"></loadWheel>
4747
<router-link v-else v-for="(result, index) in autoCompleteResults.slice(0, 6)" :to="{path:`/players/${result[1]}/?${params}`, query:urlParams.getAsObject()}" :key="index"
4848
@click="$emit('updatePlayer', result[1]); showAutoCompleteDropdown = false"

0 commit comments

Comments
 (0)