Skip to content

bug(mat-date-range-picker): comparison range not rendered if the range is a single day #20100

@steven509

Description

@steven509

Reproduction

StackBlitz: https://stackblitz.com/edit/components-issue-e3gewx

Steps to reproduce:

  1. Have a comparison range of a single day
  2. Open date range picker

Expected Behavior

What behavior were you expecting to see?
The date range picker to show the single day in the comparison range in yellow

Actual Behavior

What behavior did you actually see?
No comparison range indicated at all in the date range picker

Environment

  • Angular: 10.0.3
  • CDK/Material: 10.1.0
  • Browser(s): All
  • Operating System (e.g. Windows, macOS, Ubuntu): All

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions