Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Keyboard usage with OcSelect #1363

Open
kulmann opened this issue Jun 9, 2021 · 0 comments
Open

Keyboard usage with OcSelect #1363

kulmann opened this issue Jun 9, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@kulmann
Copy link
Member

kulmann commented Jun 9, 2021

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 kulmann added the bug Something isn't working label Jun 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant