Skip to content

Commit

Permalink
feat: Enable automatic focus of Insert from URL input
Browse files Browse the repository at this point in the history
This felt appropriate given this input is displayed for a user
immediately after tapping "Insert from URL." Thus, the user likely
expects a focused input and presented keyboard.
  • Loading branch information
dcalhoun committed Sep 1, 2023
1 parent 7f7c25c commit 09e48fa
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ function URLInput( props ) {
>
<PanelBody>
<TextControl
// eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus
label={ __( 'Insert from URL' ) }
onChange={ props.onChange }
placeholder={ __( 'Type a URL' ) }
Expand Down

0 comments on commit 09e48fa

Please sign in to comment.