novichkov-lab / generix-ui

0 stars 3 forks source link

autocomplete behavior #31

Open jmchandonia opened 4 years ago

jmchandonia commented 4 years ago

When a user types characters into an autocomplete widget, the front end fires off an API call after each character typed. As the back end responses arrive, the drop-down menu changes. Sometimes due to query times, the back end responses arrive out of order, so the drop-down menu doesn't reflect the characters the user has currently typed.

Desired behavior: if the user types another character before the back end response arrives, don't update the drop-down menu. If updating the drop-down menu, make sure the menu choices correspond to the last query sent to the back end.