Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Dropdown] Selection Search gets value of first item in collection on focus

Open theMK2k opened this issue 10 years ago • 2 comments

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:

  1. click to focus (selection pops up)
  2. selecting a value ("America Samoa")
  3. click to focus (selection pops up, "America Samoa" is highlighted)
  4. leave / click outside (first item "Afghanistan" is now the selected item <- BUG?)

semantic-ui_search_selection01

via keyboard:

  1. Shift+Tab to focus
  2. Cursor Down + Enter for selection ("America Samoa")
  3. Tab to leave
  4. Shift+Tab to focus (selection pops up, "America Samoa" is highlighted)
  5. ESC to quit selection
  6. Tab to leave (first item "Afghanistan" is now the selected item <- BUG?) semantic-ui_search_selection02

theMK2k avatar Oct 24 '16 12:10 theMK2k

#4506

juice avatar Oct 28 '16 11:10 juice

#4806

mrkam avatar Dec 02 '16 23:12 mrkam