fix: instant backdrop render prevents chart flash through glass modal

This commit is contained in:
Usman Baig
2026-03-25 23:19:27 +01:00
parent d13372c864
commit 603e910d40

View File

@@ -376,12 +376,8 @@ export default function UnifiedSettingsModal() {
<AnimatePresence> <AnimatePresence>
{isOpen && ( {isOpen && (
<> <>
{/* Backdrop */} {/* Backdrop — no opacity animation to prevent chart flash through glass */}
<motion.div <div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.2 }}
className="fixed inset-0 z-[60] bg-black/60 backdrop-blur-sm" className="fixed inset-0 z-[60] bg-black/60 backdrop-blur-sm"
onClick={handleBackdropClick} onClick={handleBackdropClick}
/> />