Reset background color on media modal (#36782)

This commit is contained in:
Echo
2025-11-07 11:44:31 +01:00
committed by GitHub
parent 8fb06ea0ca
commit 882afd7748

View File

@@ -116,6 +116,9 @@ export const MediaModal: FC<MediaModalProps> = forwardRef<
onChangeBackgroundColor(backgroundColor); onChangeBackgroundColor(backgroundColor);
} }
} }
return () => {
onChangeBackgroundColor(null);
};
}, [currentMedia, onChangeBackgroundColor]); }, [currentMedia, onChangeBackgroundColor]);
const [viewportDimensions, setViewportDimensions] = useState<{ const [viewportDimensions, setViewportDimensions] = useState<{