Created by: abdulghanitech
Description of PR The search bar on the homepage for searching cities, essentials, wasn't working fine on selecting something from predefined essentials from the given list.
Even after selecting an essential thing, the search didn’t happen, I've tried the enter key from keyboard or clicking the search icon nothing worked.
So, in order to fix this bug, I went through the typeahead library which we're using in this project and got to know about the problem. And the problem was the remote data fetching is an asynchronous task and we were trying to handle it with a normal synchronous function. I just fixed it.
Type of PR
-
Bugfix -
New feature
Relevant Issues
Fixes #...
Checklist
-
Compiles and passes lint tests -
Properly formatted -
Tested on desktop -
Tested on phone