feat: enable autofocus to the `edit chatflow title` field to improve UI usability (#3264)

feat: enable autofocus to the `edit chatflow title` field to improve usability

The canvas header has only one input and it is the primary one, there is no need for an extra click to be able to edit the title
This commit is contained in:
Humberto Rodríguez A. 2024-09-26 16:26:13 +02:00 committed by GitHub
parent b8b34832b4
commit aeb5525bb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,8 @@ const CanvasHeader = ({ chatflow, isAgentCanvas, handleSaveFlow, handleDeleteFlo
) : ( ) : (
<Stack flexDirection='row' sx={{ width: '100%' }}> <Stack flexDirection='row' sx={{ width: '100%' }}>
<TextField <TextField
//eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus
size='small' size='small'
inputRef={flowNameRef} inputRef={flowNameRef}
sx={{ sx={{