Skip to content

Commit

Permalink
GFG-392 reset focus to let the date change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-VF committed Sep 23, 2021
1 parent 04fcbe0 commit 82da79f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Orc.Controls/Controls/DateTimePicker/DateTimePicker.cs
Expand Up @@ -1068,6 +1068,10 @@ private void OnValueChanged(DateTime? oldValue, DateTime? newValue)
dispatcherService.Invoke(() => SetCurrentValue(ValueProperty, nv));
}

SetCurrentValue(FocusableProperty, true);
Focus();
SetCurrentValue(FocusableProperty, false);

UpdateUi();
}

Expand Down

0 comments on commit 82da79f

Please sign in to comment.