diff --git a/packages/block-editor/src/components/writing-flow/index.js b/packages/block-editor/src/components/writing-flow/index.js index 3bdbdbab4b13bf..784b21fa9fe4a7 100644 --- a/packages/block-editor/src/components/writing-flow/index.js +++ b/packages/block-editor/src/components/writing-flow/index.js @@ -250,7 +250,7 @@ class WritingFlow extends Component { if ( ! isVertical ) { this.verticalRect = null; } else if ( ! this.verticalRect ) { - this.verticalRect = computeCaretRect(); + this.verticalRect = computeCaretRect( target ); } // This logic inside this condition needs to be checked before