Skip to content

Support normal search submissions with Next.js Form - #15

Merged
aurorascharff merged 1 commit into
mainfrom
codex/search-form
Sep 21, 2026
Merged

aurorascharff merged 1 commit into
mainfrom
codex/search-form

Conversation

@aurorascharff

Copy link
Copy Markdown
Collaborator

Search previously only ran from the input's onChange handler, so pressing Enter could not submit it as a normal form. Wrap the existing search input in Form from next/form with action="/search", replace, and scroll={false}. Live search remains unchanged; Enter now supports client-side navigation after hydration and native GET submission without JavaScript.

Includes the version-matched AGENTS.md block generated by next dev with the existing agent-feedback configuration.

Validation: targeted ESLint and Prettier checks, TypeScript, and Next.js compilation checks passed. Browser checks verified live-search focus, Enter submission with spaces and &, client-side navigation without a document reload, and native Enter submission with JavaScript disabled. Next.js reported no runtime errors.

@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
next-beats Ready Ready Preview, v0 Sep 21, 2026 2:18pm UTC

@aurorascharff
aurorascharff merged commit 75ab3d3 into main Sep 21, 2026
7 checks passed
@aurorascharff
aurorascharff deleted the codex/search-form branch September 21, 2026 14:26

This branch was successfully deployed

1 active deployment
Preview — b6afe28e Deployed Sep 21, 2026 by vercel[bot]
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.

1 participant