Skip to content

[DatePicker|Calendar]: MaxDate property prevents immediate selection of next month date #14046

Description

@PlutaKatarzyna

Bug Description

When user uses maxDate property, and try to select date of end range month, from previous than max month view, then instead of date being selected (and calendar dropdown being closed), month view is changed and user need to click again on desire date.

Current behavior:

  • maxDate is set
  • user opens calendar for the month, which is right before the last allowed month (month containing maxDate)
  • user clicks at one of the dates from the last allowed month, visible at the last row of the previous month
  • date picker stays open and date is not selected
Screen.Recording.2026-09-11.at.14.17.41.mov

Affected Component

Date Picker, Calendar

Expected Behaviour

  • maxDate is set
  • user opens calendar for the month, which is right before the last allowed month (month containing maxDate)
  • user clicks at one of the dates from the last allowed month, visible at the last row of the previous month
  • date picker closes and date is selected

Isolated Example

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

Steps to Reproduce

  • Set maxDate to '2026-12-10'
  • open date picker and click on the months switch button to open calendar for November
  • click on the 'December, 4' cell visible at the last row of the calendar for November

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

2.26.0

Browser

Chrome

Operating System

No response

Additional Context

UDEx ticket https://github.tools.sap/sapudex/digital-design-system/issues/3532

Organization

SAP UDEx

Declaration

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

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions