You are given a hacker rank environment and are asked to share your screen. Their is pre-written code, you are expected to read through and understand it.
Goal of the call is to implement a typeahead. Whats prewritten so far is a typeahead that has a naive filter, but items are not clickable.
Implement:
Clicking a suggested item should populate the input field and hide the other results
Clicking delete icon should wipe out the input field value
Full List should display when focused on the input field and nothing is writtten in the box
Full List should hide when we leave the input fields focus