Skip to content

Commit

Permalink
Do not autofocus page title field in the Create new page modal dialog. (
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia authored and tellthemachines committed Jul 17, 2023
1 parent a93b06c commit 735463a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/edit-site/src/components/add-new-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ export default function AddNewPageModal( { onSave, onClose } ) {
<form onSubmit={ createPage }>
<VStack spacing={ 3 }>
<TextControl
/* eslint-disable jsx-a11y/no-autofocus */
autoFocus
/* eslint-enable jsx-a11y/no-autofocus */
label={ __( 'Page title' ) }
onChange={ setTitle }
placeholder={ __( 'No title' ) }
Expand Down

0 comments on commit 735463a

Please sign in to comment.