Skip to content

[regression/8.0.3] [Android] DatePicker control minimum date issue #19256

@alexsmi-noveo

Description

@alexsmi-noveo

Description

Hi, i noticed date picker minimum date issue under Android. Business process requires 2 dependent datepickers. I created appropriate viewmodel, downloaded CommunityToolkit nuget package and created appropriate Observable variables. Selection on the LEFT datepicker must reflects changes in the RIGHT datepicker. On ViewModel values are correct. But DatePicker behaviours really weird.

Under net7.0 sometimes DatePicker renders calendar with dates less than minimum, but doesn't allow to select them.
Under net7.0 and net8.0 DatePicker doesn't update datepicker calendar and doesn't allow to select minimum date.

Issue is reproducable also on live device (android 13, samsung s22) and doesn't matter debug or release mode.

Workload version: 8.0.100-manifests.71b9f198

Issue is NOT reproducable in iOS. Under iOS minimum dates behave as expected.

image image image image

dotnet workload list

Installed Workload Id Manifest Version Installation Source

maui 8.0.3/8.0.100 SDK 8.0.100
android 34.0.43/8.0.100 VS 17.8.34330.188
wasm-tools 8.0.0/8.0.100 VS 17.8.34330.188
ios 17.0.8478/8.0.100 VS 17.8.34330.188
maui-windows 8.0.3/8.0.100 VS 17.8.34330.188
maccatalyst 17.0.8478/8.0.100 VS 17.8.34330.188

Steps to Reproduce

Steps to reproduce:

  1. Launch the app
  2. Select LEFT datepicker and pick future date e.g. 12/20/2023
  3. Notice new Minimum RIGHT date = LEFT date, RIGHT date = LEFT date
  4. Select RIGHT date picker and ensure that older date cannot be selected
  5. Select LEFT datepicker and pick the date earlier than current (e.g. 12/10/2023).
  6. Notice new minimum dates in the RIGHT.
  7. Select RIGHT datepicker and ensure that RIGHT datepicker mininmum date doesn't match binding minimum date value

Link to public reproduction project repository

https://github.com/alexsmi-noveo/DatePickerIssue

Version with bug

8.0.3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 13, Android 14

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions