Semantic-UI
Semantic-UI copied to clipboard
[Dropdown] Selection Search gets value of first item in collection on focus
Hi there,
a search selection dropdown loses it's previous value after being focussed a subsequent time (the selection opens up) and leaving it (by either pressing ESC or clicking outside the selection).
This behaviour can be seen in the demo section:
via mouse:
- click to focus (selection pops up)
- selecting a value ("America Samoa")
- click to focus (selection pops up, "America Samoa" is highlighted)
- leave / click outside (first item "Afghanistan" is now the selected item <- BUG?)

via keyboard:
- Shift+Tab to focus
- Cursor Down + Enter for selection ("America Samoa")
- Tab to leave
- Shift+Tab to focus (selection pops up, "America Samoa" is highlighted)
- ESC to quit selection
- Tab to leave (first item "Afghanistan" is now the selected item <- BUG?)

#4506
#4806