Skip to content

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

Closed
trangdoan982 wants to merge 8 commits into
mainfrom
eng-1316-fix-focus-when-select-node
Closed

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

Conversation

@trangdoan982

@trangdoan982 trangdoan982 commented Feb 20, 2026

Copy link
Copy Markdown
Member

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

linear Bot commented Feb 20, 2026

Copy link
Copy Markdown

@supabase

supabase Bot commented Feb 20, 2026

Copy link
Copy Markdown

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 ↗︎.

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

Copy link
Copy Markdown
Contributor

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

@mdroidian mdroidian left a comment

Copy link
Copy Markdown
Member

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).

@trangdoan982 trangdoan982 deleted the eng-1316-fix-focus-when-select-node branch February 26, 2026 22:16
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