fix selects inside of focus trap not working on click select

This commit is contained in:
Gregor Vostrak
2024-12-09 16:33:57 +01:00
parent c4daca32c5
commit fdbf88a9a6
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export default defineConfig({
trace: process.env.CI ? 'on-first-retry' : 'on',
},
timeout: 10 * 1000,
timeout: 20 * 1000,
/* Configure projects for major browsers */
projects: [
+3 -1
View File
@@ -78,7 +78,9 @@ const maxWidthClass = computed(() => {
});
const target = ref();
const { activate, deactivate } = useFocusTrap(target);
const { activate, deactivate } = useFocusTrap(target, {
allowOutsideClick: true,
});
watch(
() => props.show,
(value) => {
@@ -49,7 +49,10 @@ function getNameForKey(key: BillableKey | undefined) {
:get-name-for-item="getNameFromItem"
:items="options">
<template #trigger>
<Badge size="xlarge" class="bg-input-background cursor-pointer">
<Badge
tag="button"
size="xlarge"
class="bg-input-background cursor-pointer">
<span>
{{ getNameForKey(model) }}
</span>
@@ -113,6 +113,7 @@ const currentClientName = computed(() => {
v-model="project.client_id">
<template #trigger>
<Badge
tag="button"
class="bg-input-background cursor-pointer hover:bg-tertiary"
size="xlarge">
<div class="flex items-center space-x-2">