Skip to content

Commit

Permalink
fix(AutoSuggestBox): optimize the code
Browse files Browse the repository at this point in the history
  • Loading branch information
TopProgrammer77 committed May 26, 2023
1 parent 7c3911b commit 90bd0a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Uno.UI/UI/Xaml/Controls/AutoSuggestBox/AutoSuggestBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,7 @@ private void OnQueryButtonClick(object sender, RoutedEventArgs e)

private void SubmitSearch(object item)
{
var finalResult = item;

QuerySubmitted?.Invoke(this, new AutoSuggestBoxQuerySubmittedEventArgs(finalResult, userInput));
QuerySubmitted?.Invoke(this, new AutoSuggestBoxQuerySubmittedEventArgs(item, userInput));

IsSuggestionListOpen = false;
}
Expand Down

0 comments on commit 90bd0a7

Please sign in to comment.