Skip to content

fix: search field losing focus after transition#399

Closed
Flo0806 wants to merge 2 commits intonpmx-dev:mainfrom
Flo0806:fix/search-focus
Closed

fix: search field losing focus after transition#399
Flo0806 wants to merge 2 commits intonpmx-dev:mainfrom
Flo0806:fix/search-focus

Conversation

@Flo0806
Copy link
Copy Markdown
Contributor

@Flo0806 Flo0806 commented Jan 30, 2026

fixes: #397


add a watcher to handle visible state after transition correctly and set focus

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 30, 2026

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

Project Deployment Actions Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Jan 30, 2026 9:42am
npmx.dev Ready Ready Preview, Comment Jan 30, 2026 9:42am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Jan 30, 2026 9:42am

Request Review

@danielroe
Copy link
Copy Markdown
Member

we already test focus in the browser tests - would you see why it's failing, and add a test case if applicable? 🙏

@Flo0806
Copy link
Copy Markdown
Contributor Author

Flo0806 commented Jan 30, 2026

The test check the focus on the settings page only. The issue happened while the route changing from home - settings + running transition. I added a new test which is failing for me without the fix.

danielroe added a commit that referenced this pull request Jan 31, 2026
Co-authored-by: Florian Heuberger <fh@flogersoft.de>
Co-authored-by: cullophid <andreas.moller@gmail.com>
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.

Search input loses focus after transition

2 participants