owncloud-design-system
owncloud-design-system copied to clipboard
Keyboard usage with OcSelect
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
TABuntil you reached the oc-select- select an item via
ENTER - hit
SPACEorENTER
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
SPACEorENTERon a closed dropdown opens it again