浏览代码

Fix For incorrect handling of NotifyCollectionChangedAction.Reset from IReactiveDerivedList<>

wojciech krysiak 7 年之前
父节点
当前提交
cdf8d1f8b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

+ 1 - 1
src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

@@ -376,7 +376,7 @@ namespace Avalonia.Controls.Primitives
                     break;
                     break;
 
 
                 case NotifyCollectionChangedAction.Reset:
                 case NotifyCollectionChangedAction.Reset:
-                    SelectedIndex = IndexOf(e.NewItems, SelectedItem);
+                    SelectedIndex = IndexOf(Items, SelectedItem);
                     break;
                     break;
             }
             }
         }
         }