SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.56k stars 267 forks source link

[SF][A11y][DatePicker] Pressing Enter key won't select the date #4826

Closed Neeeko closed 2 years ago

Neeeko commented 2 years ago

Bug Description

When using the keyboard to navigate in the DatePicker, pressing the ENTER key will only close the DatePicker instead of selecting the date and displaying it in the DatePicker input. However, it works well using SPACE key.

In the documentation it is indicated that Once the drop-down is opened, you can use the UP, DOWN, LEFT, RIGHT arrow keys to navigate through the dates and select one by pressing the Space or Enter keys

Expected Behavior

Pressing ENTER key on a date should select the date properly, close the DatePicker and display the selected date in the DatePicker input.

Steps to Reproduce

  1. Go to https://sap.github.io/ui5-webcomponents/playground/components/DatePicker/
  2. Open the Datepicker using the Keyboard and navigate to a date
  3. Press ENTER key
  4. The selected Date won't be displayed in the Date Picker input

Context

Priority

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:

Note: The priority might be re-evaluated by the issue processor.

Stakeholder Info (if applicable)

dobrinyonkov commented 2 years ago

Hello @SAP/ui5-webcomponents-topic-b , can you check this issue?

Working with 1.0.2 - https://codesandbox.io/s/ui5-webcomponents-forked-dktv5v