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 committed Jul 14, 2023
1 parent f91b4fb commit 19f84ba
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 @@ -72,9 +72,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 19f84ba

Please sign in to comment.