diff --git a/packages/editor/src/components/post-title/index.js b/packages/editor/src/components/post-title/index.js index b9cc0adaa275ca..4803d89942b481 100644 --- a/packages/editor/src/components/post-title/index.js +++ b/packages/editor/src/components/post-title/index.js @@ -75,7 +75,7 @@ function PostTitle( _, forwardedRef ) { } const ownerDocument = - ref.current.ownerDocument.defaultView.top.document; + ref.current.ownerDocument.defaultView.parent.document; const { activeElement, body } = ownerDocument; // Only autofocus the title when the post is entirely empty. This should