-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
[Bug] Clearing a DatePickerField doesn't allow you to pick the same date without changing it first #84
Comments
This is strange behavior. I found the reason but hadn't seen any solution yet. |
Can you shed some light as to what you found the reason to be, and what the problem is (i.e., why is it stuck?). This is still affecting us... Alternatively, any workarounds? Thanks. |
Since it uses default MAUI datepicker, clearing works only on the UI side. The original datepicker still keeps the date because it doesn't support null values. I'll try add some native code with Custom Handlers to overcome this issue. Content of the DatePickerField is a regular MAUI DatePicker |
I just wanted to give this issue a gentle bump. ;) This is still the case and observable in the demo DatePickerFieldPage, where Date is initially null, and cannot even be set to the current date by invoking the picker and clicking ok. |
Regarding the original bug, it is the Maui DatePicker that is the issue. This issue has been open for over a year without resolution - [(https://github.com/dotnet/maui/issues/13156)]. There is a work around mentioned in the issue that could be implemented here.
|
…g able to set to value present in wrapped MAUI control
@enisn I created a pull request, please take a look. Tested successfully in UraniumApp. edit: I also requested it to be considered again in dotnet/maui#13156, since this is not really a desirable state. |
Thanks for your contribution, I'll check as soon as possible and try to release it quickly after merged |
Using the following steps, you will see that the DatePickerField will not allow you to reselect the same date after clearing it:
Edit --
This is also true when nothing is selected and you attempt to select today's date.
The text was updated successfully, but these errors were encountered: