Skip to content

Popover focus behavior#13

Draft
joshuawootonn wants to merge 1 commit into
mainfrom
cursor/popover-focus-behavior-032f
Draft

Popover focus behavior#13
joshuawootonn wants to merge 1 commit into
mainfrom
cursor/popover-focus-behavior-032f

Conversation

@joshuawootonn

Copy link
Copy Markdown
Owner

Disable automatic focus on open for the welcome dialog.

The Intro component (welcome popup) was missing the initialFocus={() => null} prop on its DialogContent, which is necessary to prevent the dialog from automatically focusing on an element when it opens. This aligns its behavior with other dialogs like changelog, privacy policy, and terms of service.


Open in Cursor Open in Web

This commit updates several dialog components to consistently use `initialFocus={() => null}`. This ensures that focus is not automatically set on dialog elements, providing a better user experience. Additionally, it adds a `package-lock.json` file, which was missing.

Co-authored-by: joshuawootonn <joshuawootonn@gmail.com>
@cursor

cursor Bot commented Dec 25, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel

vercel Bot commented Dec 25, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
42colors Ready Ready Preview, Comment Dec 25, 2025 7:05pm

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.

2 participants