NCIOCPL / drug-dictionary-app

NCI Drug Dictionary Application
2 stars 0 forks source link

Autosuggest higlights two terms #69

Closed kate-mashkina closed 3 years ago

kate-mashkina commented 3 years ago

Issue description

Description of the issue When user starts typing into the search field "abi" and then adds 'r' - autosuggest dropdown highlights two terms

Screen Shot 2020-10-19 at 3 02 31 PM Screen Shot 2020-10-19 at 3 04 25 PM

Steps to reproduce the issue

  1. Type 'abi' in the search field
  2. Then add 'r'
  3. Notice how the first and the last words are highlighted

What's the expected result?

-

What's the actual result?

-

Additional details / screenshot

Related Tickets

kate-mashkina commented 3 years ago

While investigating, it appears that the autosuggest dropdown is not updated to reflect newly received results - in the screenshots you can see that results from previous fetch are still displayed, even though they are no longer matched with added letter, that is why it appears that two terms are highlighted - where in fact first results are not even interactable!

kate-mashkina commented 3 years ago

This should get resolved by #73

kate-mashkina commented 3 years ago

fixed by #73