AI-optimized code

This commit is contained in:
2dust
2025-03-06 14:53:25 +08:00
parent 51e5885e76
commit 7e348c196e
5 changed files with 20 additions and 10 deletions

View File

@@ -27,7 +27,9 @@ public class AutoCompleteBox : Avalonia.Controls.AutoCompleteBox
{
base.OnGotFocus(e);
if (IsDropDownOpen)
{
return;
}
SetCurrentValue(IsDropDownOpenProperty, true);
}