Fix arrow selection with top orientation

If the orientation of the dropdown is `top`, the user could not hit the up arrow to select an element in the dropdown.