fix: fix a minor issue when DateTimePicker losing focus.

This commit is contained in:
Dong Bin
2025-02-27 18:41:07 +08:00
parent 5de28c3e11
commit db741e3bcb

View File

@@ -233,6 +233,11 @@ public class DateTimePicker : DatePickerBase
{ {
return; return;
} }
if (element == _textBox)
{
return;
}
CommitInput(true); CommitInput(true);
SetCurrentValue(IsDropdownOpenProperty, false); SetCurrentValue(IsDropdownOpenProperty, false);
} }