Skip to content

Commit

Permalink
feat: enable autofocus to the edit chatflow title field to improve …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
rhumbertgz authored and 0xi4o committed Sep 30, 2024
1 parent 1e2d480 commit 81a4095
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ui/src/views/canvas/CanvasHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ const CanvasHeader = ({ chatflow, isAgentCanvas, handleSaveFlow, handleDeleteFlo
) : (
<Stack flexDirection='row' sx={{ width: '100%' }}>
<TextField
//eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus
size='small'
inputRef={flowNameRef}
sx={{
Expand Down

0 comments on commit 81a4095

Please sign in to comment.