Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePickerField doesn't allow to select current date #743

Open
idiidi opened this issue Aug 17, 2024 · 3 comments
Open

DatePickerField doesn't allow to select current date #743

idiidi opened this issue Aug 17, 2024 · 3 comments
Labels
bug-report Potential bug that should be verified duplicate This issue or pull request already exists

Comments

@idiidi
Copy link

idiidi commented Aug 17, 2024

When using a DatePickerField on Android and pressing the field to open up the date selector, pressing the current date doesn't populate the field with the date.
Selecting a different date first, pressing ok and then selecting the current date works

@enisn
Copy link
Owner

enisn commented Aug 20, 2024

Seems similar with: #84

Since native maui DatePicker doesn't allow null value. We visually make it null but still, the previously selected value is kept in the encapsulated maui picker

@enisn enisn added duplicate This issue or pull request already exists bug-report Potential bug that should be verified labels Aug 20, 2024
@idiidi
Copy link
Author

idiidi commented Aug 21, 2024

Is there a workaround?

My issue is more to do with not being able to select the current date, and not the issue with being not being able to select the same date twice. I know this the same issue behind the scenes as the current date is selected but not shown. But being able to select the current date, or even having the current date shown by default and not being blank will be an improvement.

@StepKie
Copy link
Sponsor Contributor

StepKie commented Aug 21, 2024

@idiidi Yeah it is annoying since the underlying cause is still (unfixed) in MAUI repo.
We also manually do public DateTime PropertyBoundToDatePickerField { get; set; } = DateTime.Now in our viewmodel class...

@enisn I would close these duplicates right away though, so it doesn't seem that there are over 100 open issues in UraniumUI, when there are clearly less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Potential bug that should be verified duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants