Skip to content

Comments

[ENG-1316] Fix focus when select node with keyboard flow#806

Open
trangdoan982 wants to merge 8 commits intomainfrom
eng-1316-fix-focus-when-select-node
Open

[ENG-1316] Fix focus when select node with keyboard flow#806
trangdoan982 wants to merge 8 commits intomainfrom
eng-1316-fix-focus-when-select-node

Conversation

@trangdoan982
Copy link
Collaborator

@trangdoan982 trangdoan982 commented Feb 20, 2026

cursoragent and others added 6 commits February 20, 2026 16:28
…Enter selection

- Add autoFocus to content input field to focus on dialog open
- Refocus input after selection to maintain keyboard workflow
- Prevents focus from jumping to Node Type dropdown unexpectedly

Fixes ENG-1316

Co-authored-by: doantranghp2000 <doantranghp2000@gmail.com>
@linear
Copy link

linear bot commented Feb 20, 2026

@supabase
Copy link

supabase bot commented Feb 20, 2026

This pull request has been ignored for the connected project zytfjzqyijgagqxrzbmz because there are no changes detected in packages/database/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

Copy link
Contributor

@mdroidian mdroidian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd love to see if we could achieve this result without an additional useEffect or keyup listener. Let's try to use the built in features of the components first and useEffect as a last resort.

Did you try setting autoFocus false on the <Label> containing the dropdown and the confirm <Button>? Specifically, managing the value of autoFocus depending on the state, eg:

  • if no content, focus on content
  • if no source, focus on source
  • if content+source, focus on confirm

Again, via autoFocus

It looks like there is a merge conflict now from #788
Could you give this a try after fixing the merge conflict, with a short timebox (30 min).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants