From 72539b83b0d5cdb17a1aa678c47ddc099d448403 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Wed, 15 May 2019 20:25:07 -0400 Subject: [PATCH] Block Editor: Restore WritingFlow computeCaretRect target argument --- packages/block-editor/src/components/writing-flow/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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