Skip to content

Commit 2125e1b

Browse files
Unhooked Autosuggestbox events.
1 parent d2a1874 commit 2125e1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ protected override void DisconnectHandler(FrameworkElement platformView)
8888
mnv.SelectionChanged -= OnNavigationTabChanged;
8989
if (mnv.AutoSuggestBox is not null)
9090
{
91+
mnv.AutoSuggestBox.TextChanged -= OnSearchBoxTextChanged;
92+
mnv.AutoSuggestBox.QuerySubmitted -= OnSearchBoxQuerySubmitted;
93+
mnv.AutoSuggestBox.SuggestionChosen -= OnSearchBoxSuggestionChosen;
9194
mnv.AutoSuggestBox.GotFocus -= OnSearchBoxGotFocus;
9295
mnv.AutoSuggestBox.LostFocus -= OnSearchBoxLostFocus;
9396
}

0 commit comments

Comments
 (0)