瀏覽代碼

Don't use C#8 features yet.

Steven Kirk 6 年之前
父節點
當前提交
adb65f14b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Avalonia.Controls/ItemsControl.cs

+ 1 - 1
src/Avalonia.Controls/ItemsControl.cs

@@ -494,7 +494,7 @@ namespace Avalonia.Controls
             do
             {
                 result = container.GetControl(direction, c, wrap);
-                from ??= result;
+                from = from ?? result;
 
                 if (result?.Focusable == true)
                 {