Focusing on lone input when opening modals.

This commit is contained in:
Roland 2026-07-06 15:35:23 -06:00
parent 756c063d15
commit 4dfb997bfc
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
5 changed files with 8 additions and 4 deletions

View file

@ -84,7 +84,7 @@ export function AddToPlaylistModal({open, onClose, items = [], onComplete}) {
<Form onSubmit={handleCreateAndAdd} style={{marginTop: '1em'}}>
<Form.Field>
<label>Or create a new playlist</label>
<Input placeholder='New playlist name...' value={newName}
<Input autoFocus placeholder='New playlist name...' value={newName}
onChange={(e, {value}) => setNewName(value)}/>
</Form.Field>
</Form>