Skip to content

fix(ui5-day-picker): complete mouse selection after other-month mousedown with min/maxDate - #14122

Open
hinzzx wants to merge 2 commits into
mainfrom
dp-maxDate-foc-fix
Open

hinzzx wants to merge 2 commits into
mainfrom
dp-maxDate-foc-fix

Conversation

@hinzzx

@hinzzx hinzzx commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Previously, when maxDate was set on ui5-date-picker or ui5-calendar, selecting a valid day from the next month while viewing the previous month (grey trailing "other month" cells) often only switched the month view. The popover stayed open and the value did not update until a second click. Without maxDate, the same gesture usually worked.

With this change we complete mouse selection in ui5-day-picker. Mousedown already navigates to the clicked month before click runs; with maxDate, many days in that month are disabled, so mouseup often missed the day cell and _selectDate returned early.

Before

2026-10-05_11-52-39 (1)

After

2026-10-05_11-51-20 (1)

Fixes: #14046

@hinzzx
hinzzx deployed to netlify-preview October 5, 2026 08:53 — with GitHub Actions Active
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@GDamyanov
GDamyanov self-requested a review October 6, 2026 08:17
Comment thread packages/main/cypress/specs/DatePicker.cy.tsx Outdated
Comment thread packages/main/cypress/specs/Calendar.cy.tsx Outdated
@hinzzx
hinzzx deployed to netlify-preview October 7, 2026 06:37 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
netlify-preview — 7dfe4f5b Deployed Oct 7, 2026 by hinzzx via deploy-preview #3452
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.

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

2 participants