Skip to content

Commit 1107c4a

Browse files
committed
fix: teleport to body select
1 parent 9071f92 commit 1107c4a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

custom/FiltersArea.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
<template>
22
<div v-if="columnsWithFilter && columnsWithFilter.length > 0" class="flex flex-col w-full p-4 mb-4 rounded-lg border border-gray-100 dark:border-gray-700 shadow-sm dark:shadow-lg text-gray-900 dark:text-white">
3-
<p
4-
class="hover:underline cursor-pointer text-blue-700 dark:text-blue-500 text-end"
5-
@click="isExpanded = !isExpanded"
6-
>
7-
{{ isExpanded ? 'Hide filters' : 'Show filters' }}
8-
</p>
3+
<div class ="flex justify-end items-center">
4+
<p
5+
class="hover:underline cursor-pointer text-blue-700 dark:text-blue-500 text-end"
6+
@click="isExpanded = !isExpanded"
7+
>
8+
{{ isExpanded ? 'Hide filters' : 'Show filters' }}
9+
</p>
10+
</div>
911
<div v-if="isExpanded" class="md:grid md:grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-6 gap-4 w-full">
1012
<div class="flex flex-col" v-for="c in columnsWithFilter" :key="c">
1113
<div class="min-w-48">
1214
<p class="dark:text-gray-400">{{ c.label }}</p>
1315
<Select
16+
:teleportToBody="true"
1417
v-if="c.foreignResource"
1518
:multiple="c.filterOptions.multiselect"
1619
class="w-full"
@@ -33,6 +36,7 @@
3336
</template>
3437
</Select>
3538
<Select
39+
:teleportToBody="true"
3640
:multiple="c.filterOptions.multiselect"
3741
class="w-full"
3842
v-else-if="c.type === 'boolean'"
@@ -49,6 +53,7 @@
4953
/>
5054

5155
<Select
56+
:teleportToBody="true"
5257
:multiple="c.filterOptions.multiselect"
5358
class="w-full"
5459
v-else-if="c.enum"

0 commit comments

Comments
 (0)