Skip to content

[Calendar | Date Picker]: Incorrect selected date while month range change #13760

Description

@PlutaKatarzyna

Bug Description

When user open Date Picker calendar dropdown and select date that is next or previous month range (without switching month preview), calendar switch view to that month and select date that is in clicked position, instead of date that user selected.
See screen recording:
https://github.com/user-attachments/assets/b2771c0e-e861-4cf7-bd98-07b1bbaba6b1

Affected Component

Calendar, Date Picker

Expected Behaviour

When user select date that overlaps currently displayed month, clicked date is selected.

Isolated Example

https://ui5.github.io/webcomponents/components/DatePicker/

Steps to Reproduce

  1. Open calendar dropdown
  2. See full month, with preview of few days of next month - for example, open month June
  3. Click on next month day to select this date - for example 1st of July
  4. Dropdown is closed, and instead of 1st of July, 29 Jul 2026 is selected (because it is clicked item position after calendar switch to next month preview)
Image Image Image

Log Output, Stack Trace or Screenshots

No response

Priority

High

UI5 Web Components Version

2.23.2

Browser

Chrome

Operating System

No response

Additional Context

UDEx Ticket https://github.tools.sap/sapudex/digital-design-system/issues/3372

Organization

SAP UDEx

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions