diff --git a/components/settings/OrganizationSettings.tsx b/components/settings/OrganizationSettings.tsx index e2ce1c4..1c1b4b0 100644 --- a/components/settings/OrganizationSettings.tsx +++ b/components/settings/OrganizationSettings.tsx @@ -1,6 +1,7 @@ 'use client' import { useState, useEffect, useCallback, useRef } from 'react' +import { createPortal } from 'react-dom' import { useRouter, useSearchParams } from 'next/navigation' import { setSessionAction } from '@/app/actions/auth' import { logger } from '@/lib/utils/logger' @@ -1328,14 +1329,15 @@ export default function OrganizationSettings() { - {/* Delete Confirmation Modal */} + {/* Delete Confirmation Modal — portal to body so backdrop-blur covers the fixed header */} + {typeof document !== 'undefined' && createPortal( {showDeletePrompt && ( )} - + , + document.body + )} {/* Cancel subscription confirmation modal */}