Open salihaoguz11 opened 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.
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.