Current situation:
When typing a namepsace-name into the field the first item on the list isn't immediately preselected but actually in the background another list item is selected.
This results in a completely different item being added to the field when pressing enter in that situation. In this case discussion was added after pressing enter.
Also after adding and then removing a namespace, the preselection stays on the last selected item and not the top one either.
Task:
The preselection should always be the top item on the list, unless the user is moving down along the list with his cursor or up- and down buttons.
Criteria:
- When the drop-down is opened for the first time the top item should be preselected.
- When a tag was created and all options are shown again, the top item should be preselected.
- While typing the preselected item should always be the top one of the list that the user currently sees.
- When the user navigated the list with the up and down buttons the preselection should move accordingly and when the user presses enter the item that was visibly preselected to the user should be added as a tag.