From 857ca64ae813ae75e5f3a3c5a7d4f930d7bd47d9 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Mon, 25 Nov 2024 10:44:10 -0600 Subject: [PATCH] Disable errant react-compiler eslint rule --- packages/block-editor/src/components/iframe/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-editor/src/components/iframe/index.js b/packages/block-editor/src/components/iframe/index.js index bf4fa55df8efc0..f8b7c25084e38d 100644 --- a/packages/block-editor/src/components/iframe/index.js +++ b/packages/block-editor/src/components/iframe/index.js @@ -436,6 +436,9 @@ function Iframe( { prevScaleRef.current = scaleValue; // Set the final scroll position that was just animated to. + // Disable reason: Eslint isn't smart enough to know that this is a + // DOM element. https://github.com/facebook/react/issues/31483 + // eslint-disable-next-line react-compiler/react-compiler iframeDocument.documentElement.scrollTop = scrollTopNext; }