diff --git a/packages/editor/src/components/post-title/index.js b/packages/editor/src/components/post-title/index.js index b9cc0adaa275c..4803d89942b48 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