ErxiaHQ / govote-app

Simple Preact app to help people find locations to get PVCs and Vote in the upcoming Nigeria General Elections. It's built on the govote-api API.
https://govote.org.ng/
MIT License
34 stars 5 forks source link

Autocomplete on the search page #3

Open yomete opened 6 years ago

yomete commented 6 years ago

Locations from the API should display on the input field as soon as users start typing. Almost akin to the way Google places works.

pyjac commented 6 years ago

Been trying out accessible-autocomplete (quite buggy...lol) for this. Here is what I have image

pyjac commented 6 years ago

Still needs some styling (not my strong point).

yomete commented 6 years ago

@pyjac Awesome work here man. Any update?

Mrkezii commented 6 years ago

I noticed a bug with the search bar, after searching a location and clearing the search field you never get the complete centers.

I propose a fix that searches the location centers as user types in the search field. I will try my hands on it if i have time though