Skip to content

fix(date-range-filter): add space key support for preset list items#2103

Draft
akashsonune wants to merge 1 commit into
mainfrom
fix/date-range-filter-keyboard-accessibility
Draft

fix(date-range-filter): add space key support for preset list items#2103
akashsonune wants to merge 1 commit into
mainfrom
fix/date-range-filter-keyboard-accessibility

Conversation

@akashsonune
Copy link
Copy Markdown
Member

@akashsonune akashsonune commented May 27, 2026

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds space keydown handling to the date range filter preset list items to prevent default behavior and select the item. The reviewer requested adding a corresponding unit test to verify this behavior, as required by the contribution guidelines.

[cdkOption]="item.label"
(click)="selectPresetItem($event, item)"
(keydown.enter)="selectPresetItem($event, item)"
(keydown.space)="$event.preventDefault(); selectPresetItem($event, item)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

According to the repository's contribution guidelines, pull requests that introduce functional changes or bug fixes must include corresponding unit tests. Please add a unit test to verify that pressing the Space key on a preset list item triggers the selection and prevents the default scroll behavior.

References
  1. PRs that introduce functional changes (new features, bug fixes, refactors affecting behavior) must include corresponding unit tests. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant