Skip to content

A self-hosted media server and file management system

fix: global modal does not block keyboard events such as player controls

aminnausin8b6062be772e
diff --git a/resources/js/components/cedar-ui/modal/GlobalModal.vue b/resources/js/components/cedar-ui/modal/GlobalModal.vue
index 5d4c5540..a9c500af 100644
--- a/resources/js/components/cedar-ui/modal/GlobalModal.vue
+++ b/resources/js/components/cedar-ui/modal/GlobalModal.vue
@@ -46,11 +46,12 @@ const modalStore = useModalStore();
@keydown.esc="modalStore.close"
:class="
cn(
- '3xl:max-w-xl bg-overlay-2-t border-overlay-border m-auto flex w-full flex-col gap-4 rounded-xl border p-6 shadow-lg drop-shadow-md backdrop-blur-lg sm:max-w-lg xl:max-w-xl',
+ '3xl:max-w-xl bg-overlay-2-t border-overlay-border m-auto flex w-full flex-col gap-4 rounded-xl border p-6 shadow-lg drop-shadow-md backdrop-blur-lg focus:outline-none sm:max-w-lg xl:max-w-xl',
modalStore.props.rootClass,
)
"
tabindex="-1"
+ @keydown.stop
>
<component :is="modalStore.component" v-bind="modalStore.props.value" />
</OnClickOutside>