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

Added Enter to search functionality in posts page #561

Merged

Conversation

Sourabh782
Copy link
Contributor

@Sourabh782 Sourabh782 commented Aug 3, 2024

Pull Request

Title

Added press Enter to search functionality in posts page

Description

Previously, in posts section, while searching for a post we have to click on "search" button to search for a specific keyword post.
I added functionality so that, we can directly type our keyword and hit "ENTER" to search, thus improving user experience.

Related Issues

Fixes #549

Changes Made

Added a key event in searchbox which is triggered when ENTER key is pressed, calling the "handleSubmit" function which then takes care of fetching relevant posts.

Checklist

  • I have tested the changes locally
  • Documentation has been updated (if necessary)
  • Changes are backward-compatible

Screenshots (if applicable)

Added.Enter.to.search.functionality.in.posts.page.by.Sourabh782.Pull.Request.561.VaibhavArora314_StyleShare.-.Google.Chrome.2024-08-04.10-27-13.1.mp4

Additional Notes

Footer
Thanks for assigning me this issue.

Copy link

vercel bot commented Aug 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
style-share ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2024 0:31am

Copy link

github-actions bot commented Aug 3, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@VaibhavArora314
Copy link
Owner

Remove the console.log comment

@Sourabh782
Copy link
Contributor Author

Okk I'll do it

@Sourabh782
Copy link
Contributor Author

@VaibhavArora314 removed comment

@VaibhavArora314 VaibhavArora314 merged commit 330fa3c into VaibhavArora314:main Aug 5, 2024
2 checks passed
Copy link

github-actions bot commented Aug 5, 2024

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Adding "ENTER PRESS" to search
3 participants