Skip to content

Commit

Permalink
Accessibility: Fix the issue when focus is moved to the post title fr…
Browse files Browse the repository at this point in the history
…om More Menu (#16874)
  • Loading branch information
gziolo committed Aug 29, 2019
1 parent de214b9 commit 72e8ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
/>
</KeyboardShortcuts>
Expand Down

0 comments on commit 72e8ded

Please sign in to comment.