-
Notifications
You must be signed in to change notification settings - Fork 545
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
Clear search input on submit #24
Comments
ishaan can you pls tell me how this handlechange is working i dont |
sorry ishaan but i can't see my committed code in ur main code. im new in opensource. |
Hi @kushalShukla-web , this repo belongs to @Yog9 , so for your changes to reflect you need create Pull Request on the repo of @Yog9 . |
I want to work on this issue. |
Hi @Yog9 , Code change in App.js: **Code change in Form.js:** const handleSubmit = (e, history, searchEntry) => { e.preventDefault(); e.currentTarget.reset(); let url = `/search/${searchEntry}`; history.push(url); **setSearchEntry('')** }; |
SnapShot/src/App.js
Line 13 in 406d695
If this line is used for clearing the search input then it is not being cleared.
I suggest adding
setSearchEntry("");
after handleSubmit callSnapShot/src/components/Form.js
Line 12 in 406d695
The text was updated successfully, but these errors were encountered: