ttmjltd / findclinic

https://findclinic.vercel.app
1 stars 1 forks source link

Bug Report: Enter Key Does Not Trigger Search Button Submission #102

Open salihaoguz11 opened 2 hours ago

salihaoguz11 commented 2 hours ago

Description

When clicking the Search button, the search functionality works as expected. However, pressing the Enter key does not trigger the form submission or initiate the search. Screenshot 2024-11-18 at 12 56 05

lattaai12 commented 2 hours ago

Hello, I tried to solve the issue.

This is what I did:

Modified SearchComponent.tsx to handle Enter key press and trigger search. Added a form wrapper around the inputs and button, and implemented an onSubmit handler to trigger the search function.

You can review changes in this commit: https://github.com/lattaai12/ttmjltd-findclinic-102/commit/c50b8793f66a454ca3ce4798f77af997567ac104.

[!CAUTION] Disclaimer: The commit was created by Latta AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.


This issue was tried to solve for free by Latta AI - https://latta.ai/ourmission

If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.