devjainofficial / Weather-app

A simple and user-friendly weather application which lets the users know the temperature of any location across the globe and also various parameters. This application has been built using HTML, CSS, JavaScript and weather API.
https://globalweatherappdev.vercel.app/
MIT License
7 stars 21 forks source link

Search the bug #22

Closed devjainofficial closed 11 months ago

devjainofficial commented 12 months ago

Search the bug and report me by creating a txt file, and add your searched bug there.

shivang21007 commented 11 months ago

@devjainofficial I resolved the bug-issue. it is nothing just you are using listener in wrong way-

image

this event listener listen when anykey press down on keyboard so as soon as user start typer name of city , it start listening everytime when any letter pressed. the motive to solve it only listen when enter keypressed by user. so this is my solution - image

also added a feature by making icon as button so if someone click on search icon it will also work. I am raising PR as final solution.

devjainofficial commented 11 months ago

Thankyou for your contribution.