owncloud-design-system icon indicating copy to clipboard operation
owncloud-design-system copied to clipboard

Keyboard usage with OcSelect

Open kulmann opened this issue 4 years ago • 0 comments

The OcSelect component opens the dropdown on mouseclick and on focus. Keyboard toggle Enter or Space doesn't work, but is expected. In some usecases it's actually not desired behaviour that the dropdown opens on focus, but it cannot be prevented.

Steps to reproduce

  1. TAB until you reached the oc-select
  2. select an item via ENTER
  3. hit SPACE or ENTER

Expected behaviour

The dropdown of the oc-select opens again.

Actual behaviour

The dropdown of the oc-select doesn't open.

Acceptance criteria for a fix

  • dropdown doesn't open on focus (or additional prop so that the developer can decide if it's allowed or not)
  • hitting SPACE or ENTER on a closed dropdown opens it again

kulmann avatar Jun 09 '21 13:06 kulmann