Skip to content

A self-hosted media server and file management system

fix: modal scrolls to top of last focus item suddenly disappears

aminnausin26cbfbf0dbf9
diff --git a/resources/js/components/cedar-ui/modal/GlobalModal.vue b/resources/js/components/cedar-ui/modal/GlobalModal.vue
index f13d41fd..5d4c5540 100644
--- a/resources/js/components/cedar-ui/modal/GlobalModal.vue
+++ b/resources/js/components/cedar-ui/modal/GlobalModal.vue
@@ -38,6 +38,7 @@ const modalStore = useModalStore();
>
<UseFocusTrap
v-if="modalStore.isOpen"
+ :options="{ preventScroll: true }"
class="scrollbar-hide pointer-events-auto relative flex h-full max-h-screen w-full items-center overflow-y-scroll px-4 py-10 sm:py-6"
>
<OnClickOutside