From 2650610b2e91722b7a7d9ced686458159b8d4754 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 14 Jul 2023 04:04:11 -0600 Subject: [PATCH] Fix bug where clicking and dragging outside of timepicker causes application to freeze --- ModernWpf.MahApps/TimePicker/DateTimeComponentSelector.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ModernWpf.MahApps/TimePicker/DateTimeComponentSelector.cs b/ModernWpf.MahApps/TimePicker/DateTimeComponentSelector.cs index ed1fe4f5..d5a77104 100644 --- a/ModernWpf.MahApps/TimePicker/DateTimeComponentSelector.cs +++ b/ModernWpf.MahApps/TimePicker/DateTimeComponentSelector.cs @@ -185,6 +185,7 @@ protected override bool IsItemItsOwnContainerOverride(object item) protected override void OnSelectionChanged(SelectionChangedEventArgs e) { + ReleaseMouseCapture(); e.Handled = true; _deferredSelectionChangedEventArgs = e;