Skip to content

fix: date pickers open on the minimum date when it changes while the value is empty - #16

Merged
OmarShehe merged 2 commits into
masterfrom
fix/date-picker-initial-month-follows-min
Oct 25, 2026
Merged

OmarShehe merged 2 commits into
masterfrom
fix/date-picker-initial-month-follows-min

Conversation

@OmarShehe

Copy link
Copy Markdown
Owner

An end-date picker created with an empty value and no minimum kept opening on today after the start date was picked, because the picker state was keyed on the value only. It is now keyed on the fallback date too, in both FormInputDatePickerField and FormInputDateTimePickerField.

Tests: PickerOpensOnMinDateTest (both fields) failed before the change and passes now; :forminput:jvmTest is green.

…value is empty

The picker state was keyed on the value only, so an end-date field created before its start date was picked kept opening on today. Key it on the fallback date as well.
@OmarShehe
OmarShehe merged commit 38db09d into master Oct 25, 2026
@OmarShehe
OmarShehe deleted the fix/date-picker-initial-month-follows-min branch October 25, 2026 19:38
@OmarShehe OmarShehe mentioned this pull request Oct 25, 2026
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.

1 participant