Skip to content

Commit

Permalink
Disable errant react-compiler eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Nov 25, 2024
1 parent 73e032e commit 857ca64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 857ca64

Please sign in to comment.