Skip to content

Conversation

kean
Copy link
Contributor

@kean kean commented Oct 8, 2025

What?

The editor will now automatically focus when you open create a new post. This is the behavior you expect on iOS, and it matches Gutenberg Mobile.

This change is part of #162.

How?

Programmatically click on the first editable element.

Testing Instructions

  • Open an editor with empty content and verify that the editor automatically becomes focused
  • Open an editor with non-empty content and verify that it doesn't

Screenshots or screencast

Screen.Recording.2025-10-08.at.4.33.32.PM.mov

@kean kean requested a review from dcalhoun October 8, 2025 20:47
@kean kean changed the title feature: Auto-focus on first load feature: Auto-focus when creating a new post Oct 8, 2025
Copy link
Member

@dcalhoun dcalhoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test plan succeeded for me. I left a few suggestions for your consideration.

@kean kean force-pushed the task/add-auto-focus-on-load branch 3 times, most recently from a8dcf5a to cec5007 Compare October 9, 2025 13:24
@kean kean force-pushed the task/add-auto-focus-on-load branch from cec5007 to 63c1315 Compare October 9, 2025 13:27
@dcalhoun dcalhoun enabled auto-merge (squash) October 9, 2025 14:36
@dcalhoun dcalhoun merged commit c63dc55 into trunk Oct 9, 2025
9 of 10 checks passed
@dcalhoun dcalhoun deleted the task/add-auto-focus-on-load branch October 9, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants