commerce
commerce copied to clipboard
The search input issues
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.
Can you share a video please?
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
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.
Disabling the prefetch function can solve this problem, not sure if there is a better solution.
<Form action="/search" prefetch={false}>
I have the exact same issue. Local works fine but production has this issue that @skupta12 showed in the video. Desktop and Mobile has this issue