Skip to content

Commit

Permalink
fix selects inside of focus trap not working on click select
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Dec 9, 2024
1 parent c4daca3 commit fdbf88a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
4 changes: 3 additions & 1 deletion resources/js/packages/ui/src/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit fdbf88a

Please sign in to comment.