mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
fix selects inside of focus trap not working on click select
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user