Skip to content

Commit 441072c

Browse files
authored
Much nicer fix (#701)
Feature forms: Fix for MAUI windows bug where the DateTimePicker would enter an infinite loop
1 parent 4b98f12 commit 441072c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Toolkit/Toolkit/UI/Controls/FeatureForm/DateTimePickerFormInputView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private void UpdateValue()
100100
// - the date has changed, or
101101
// - the value has changed to/from null, or
102102
// - the time has changed and IncludeTime is true
103-
if (date != oldDate && (date == null || oldDate == null || date != oldDate.Value.Date || input.IncludeTime))
103+
if (date != oldDate && (date == null || oldDate == null || date.Value.Date != oldDate.Value.Date || input.IncludeTime))
104104
{
105105
#if MAUI
106106
if (date != null && oldDate != null && oldDate.Value.AddSeconds(-oldDate.Value.Second).AddMilliseconds(-oldDate.Value.Millisecond) == date.Value)

0 commit comments

Comments
 (0)