Skip to content

Commit

Permalink
Hotfix for Category Expansion during search
Browse files Browse the repository at this point in the history
  • Loading branch information
Marterich committed Oct 14, 2024
1 parent ba968d0 commit 2d0e68c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/public/Invoke-WPFUIApps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d0e68c

Please sign in to comment.