Skip to content

Date Range picker issue #28665

Closed
Closed
@Udhayanila8

Description

@Udhayanila8

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The date range on trying to alter the date manually after choosing is not working properly.

Note: The issue only occurs randomly, so check more than once without refreshing.

Reproduction

StackBlitz link: https://material.angular.io/components/datepicker/overview
Steps to reproduce:

  1. Select a date range from the Basic date range picker
    image
  2. Place the cursor at the last index of the end date
    image
  3. Try to delete the end date completely by pressing the 'Backspace key'.
  4. Once the end date is removed the cursor is automatically placed at the beginning of the start date
    image

Expected Behavior

The cursor should only be placed at the last index of the start date.

Actual Behavior

The cursor is automatically placed at the beginning of start date

Environment

  • Angular: 17.2.1+sha-7d352fb
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions