Fix bad flyout behavior after theme switch
The flyout was in the wrong position.
MODIFY
WalletWasabi.Fluent/Behaviors/SearchBarBehavior.cs
WalletWasabi.Fluent/Behaviors/SearchBarBehavior.cs
@@ -93,6 +93,12 @@ public class SearchBarBehavior : AttachedToVisualTreeBehavior<Control>
}
}
+ protected override void OnDetachedFromVisualTree()
+ {
+ HideFlyout();
+ FocusManager.Instance?.Focus(null);
+ }
+
private void ToggleFlyoutOpen(bool isOpen)
{
if (isOpen)

Fix bad flyout behavior after theme switch

The flyout was in the wrong position.