NCIOCPL / drug-dictionary-app

NCI Drug Dictionary Application
2 stars 0 forks source link

Update autosuggest functionality to match glossary app #106

Open arcepaul opened 3 years ago

arcepaul commented 3 years ago

While testing glossary app, it was found that the autosuggest positioning behavior introduced in PR #81 causes some unwanted jankiness in the autosuggest menu. When the input in in close proximity to the bottom of the viewport, as the user types the position of the autosuggest menu will alternate between appearing above and below the input box.

This CR is to pull in the modified positioning code from glossary app PR #239 (https://github.com/NCIOCPL/glossary-app/pull/239) and apply it to drug dictionary.

ESTIMATE TBD

What's the expected change?

Autosuggest menu should correctly position itself above the menu so that the list of items is not cut off by the bottom of the viewport.

What's the current functionality?

Related Tickets