Skip to content

Commit

Permalink
Focus input field on display of rename modal
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Apr 5, 2024
1 parent 533d965 commit 735d970
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/edit-site/src/components/page-modal/rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ export default function PageRenameModal() {

return (
<Modal
title={ __( 'Rename' ) }
onRequestClose={ closeModal }
closeModal={ closeModal }
focusOnMount="firstContentElement"
onRequestClose={ closeModal }
page={ page }
title={ __( 'Rename' ) }
>
<RenamePostModalContent
items={ [ page ] }
Expand Down

0 comments on commit 735d970

Please sign in to comment.