From 2d0e68c90f6d7f65771645b2e128be9a3be66074 Mon Sep 17 00:00:00 2001 From: Marterich <47688561+Marterich@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:31:53 +0200 Subject: [PATCH] Hotfix for Category Expansion during search --- functions/public/Invoke-WPFUIApps.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/public/Invoke-WPFUIApps.ps1 b/functions/public/Invoke-WPFUIApps.ps1 index aada7d45..8614a4fd 100644 --- a/functions/public/Invoke-WPFUIApps.ps1 +++ b/functions/public/Invoke-WPFUIApps.ps1 @@ -213,6 +213,8 @@ function Invoke-WPFUIApps { $categoryPanel.Cursor = [System.Windows.Input.Cursors]::Hand $categoryPanel.Add_MouseUp({ + # Clear the search bar when a category is clicked + $sync.SearchBar.Text = "" Toggle-CategoryVisibility -Category $this.Children[1].Text -ItemsControl $this.Parent }) $null = $ItemsControl.Items.Add($categoryPanel)