autofocus the first element if option enabled
empty the input when an item is selected