From 2008b8ec5670b1fbd0374c98132a134a48803808 Mon Sep 17 00:00:00 2001 From: Grzegorz Ziolkowski Date: Fri, 2 Aug 2019 09:41:57 +0200 Subject: [PATCH] Accessibility: Fix the issue when focus is moved to the post title from More Menu --- packages/editor/src/components/post-title/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/post-title/index.js b/packages/editor/src/components/post-title/index.js index e992e25bae11a..d5f81b5d143c8 100644 --- a/packages/editor/src/components/post-title/index.js +++ b/packages/editor/src/components/post-title/index.js @@ -136,7 +136,7 @@ class PostTitle extends Component { right away, without needing to click anything. */ /* eslint-disable jsx-a11y/no-autofocus */ - autoFocus={ isCleanNewPost } + autoFocus={ document.body === document.activeElement && isCleanNewPost } /* eslint-enable jsx-a11y/no-autofocus */ />