From 9bb636ed3b590e5641213e092f05962d29411b0f Mon Sep 17 00:00:00 2001 From: laurenyj <44596134+laurenyj@users.noreply.github.com> Date: Fri, 13 Sep 2024 11:21:51 -0500 Subject: [PATCH] Remove alpha attribute from Page component to fix black boxes rendering as page placeholders --- client/app/readerprototype/components/Page.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/readerprototype/components/Page.jsx b/client/app/readerprototype/components/Page.jsx index db728164e79..92d0372fde4 100644 --- a/client/app/readerprototype/components/Page.jsx +++ b/client/app/readerprototype/components/Page.jsx @@ -65,7 +65,7 @@ const Page = ({ page, rotation = ROTATION_DEGREES.ZERO, renderItem, scale }) => useEffect(() => { if (canvasRef.current && isVisible) { - page.render({ canvasContext: canvasRef.current?.getContext('2d', { alpha: false }), viewport }). + page.render({ canvasContext: canvasRef.current?.getContext('2d'), viewport }). promise.catch(() => { // this catch is necessary to prevent the error: Cannot use the same canvas during multiple render operations });