High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): focus escaping from modals (#8730)
Ben25e188793955
diff --git a/web/src/lib/components/forms/library-exclusion-pattern-form.svelte b/web/src/lib/components/forms/library-exclusion-pattern-form.svelteindex 8ee603979b..b637673d54 100644--- a/web/src/lib/components/forms/library-exclusion-pattern-form.svelte+++ b/web/src/lib/components/forms/library-exclusion-pattern-form.svelte@@ -17,7 +17,7 @@});$: isDuplicate = exclusionPattern !== null && exclusionPatterns.includes(exclusionPattern);- $: canSubmit = exclusionPattern !== '' && exclusionPattern !== null && !exclusionPatterns.includes(exclusionPattern);+ $: canSubmit = exclusionPattern && !exclusionPatterns.includes(exclusionPattern);const dispatch = createEventDispatcher<{cancel: void;diff --git a/web/src/lib/components/shared-components/focus-trap.svelte b/web/src/lib/components/shared-components/focus-trap.svelteindex 084123506c..d1c01825de 100644--- a/web/src/lib/components/shared-components/focus-trap.svelte+++ b/web/src/lib/components/shared-components/focus-trap.svelte@@ -17,7 +17,9 @@const getFocusableElements = () => {return Array.from(- container.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),+ container.querySelectorAll(+ 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',+ ),) as HTMLElement[];};