Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The search input issues #1431

Open
skupta12 opened this issue Feb 11, 2025 · 4 comments
Open

The search input issues #1431

skupta12 opened this issue Feb 11, 2025 · 4 comments

Comments

@skupta12
Copy link

The search input doesn't work on mobile for some reason. It freezes the entire page, making it completely unresponsive. How could I fix that? This bug even exists on the official Next.js Commerce website.

@leerob
Copy link
Member

leerob commented Feb 11, 2025

Can you share a video please?

@skupta12
Copy link
Author

I go to the mobile menu, enter any text in search input and nothing happens. After that, I try to navigate to a page like All, Shirts, or Stickers, but the requests are not processed. https://github.com/user-attachments/assets/500dddad-f55b-469f-84b0-3fc3e53a8591

@F-loat
Copy link

F-loat commented Feb 16, 2025

The same problem exists on the PC side. If you search directly on the homepage, the search will not take effect, and other pages cannot be jumped. If you enter other pages first and then search, you won’t have this problem.

The development mode is correct, but the production mode will have this problem.

@F-loat
Copy link

F-loat commented Feb 17, 2025

Disabling the prefetch function can solve this problem, not sure if there is a better solution.

<Form action="/search" prefetch={false}>

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

No branches or pull requests

3 participants